Customize site navigational links through a Jekyll data file.
The masthead links use a “priority plus” design pattern. Meaning, show as many navigation items that will fit horizontally with a toggle to reveal the rest.
To define these links add titles and URLs under the main
key in _data/navigation.yml
:
main:
- title: "Quick-Start Guide"
url: /docs/quick-start-guide/
- title: "Posts"
url: /year-archive/
- title: "Categories"
url: /categories/
- title: "Tags"
url: /tags/
- title: "Pages"
url: /page-archive/
- title: "Collections"
url: /collection-archive/
- title: "External Link"
url: https://google.com
Which will give you a responsive masthead similar to this:
Optionally, you can add a description
key per title in the main
key. This description
will show up like a tooltip, when the user hovers over the link on a desktop browser.
ProTip: Put the most important links first so they’re always visible and not hidden behind the menu toggle.
Enable breadcrumb links to help visitors better navigate deep sites. Because of the fragile method of implementing them they don’t always produce accurate links reliably. For best results:
permalink: /:categories/:title/
breadcrumbs: true # disabled by default
Breadcrumb start link text and separator character can both be changed in _data/ui-text.yml
.
breadcrumb_home_label : "Home"
breadcrumb_separator : "/"
For breadcrumbs that resemble something like Start > Blog > My Awesome Post
you’d apply these settings:
breadcrumb_home_label : "Start"
breadcrumb_separator : ">"
See the sidebars documentation for information on setting up a custom navigation menu.