Giter Site home page Giter Site logo

Comments (4)

raufsamestone avatar raufsamestone commented on May 28, 2024

Hi @sbardian, Is it possible to change "Home" label from SitemapCrumbs?
And is there a way dynamically rewrite the label's lower-case to uppercase from sitemap.xml ? For example default look like "Home/about-us/", but I want to show like "Home/About Us".

from gatsby-plugin-breadcrumb.

sbardian avatar sbardian commented on May 28, 2024

@raufsamestone I have released v3.1.0 to include the new feature of supplying a crumbLabel for the root path, when using SitemapCrumbs. See the updated docs for the sitemap crumbs gatsby-config here. I still need to reason out a way to allow for custom crumb labels on crumbs built from the sitemap xml. Hope this helps.

from gatsby-plugin-breadcrumb.

sbardian avatar sbardian commented on May 28, 2024

@raufsamestone please see PR #21. Hopefully this PR will solve your second issue/request. I will leave this issue open, as I originally wanted this feature to be more automated as mentioned in the PR, but I hope this will get you by until then.

Thinking more on this, this fix will only help with a site with only two levels of crumbs ( Home / About Us ). As the crumbLabel prop for overriding only applies to the page you are on. Just a heads up on that. . .

from gatsby-plugin-breadcrumb.

sbardian avatar sbardian commented on May 28, 2024

closing, going to assume this worked out ok.

from gatsby-plugin-breadcrumb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.