This is a Jekyll template include that renders navigation breadcrumbs for a page or post. The breadcrumbs include the page or post's collection, categories, date and title. They look something like this:
Home > Posts > 2019 > Dec > 23 > My Blog Post
Copy both the breadcrumbs.html
and breadcrumb_text.html
files below into your Jekyll site's _includes/
folder.
To render the breadcrumbs for the current page:
{% include breadcrumbs.html %}
To render the breadcrumbs for another page:
{% include breadcrumbs.html page=another_page %}
To render breadcrumbs with the home page and date omitted (see Options below for more options):
{% include breadcrumbs.html omit_home=true omit_date=true %}
omit_home : Don't include the home page as the first breadcrumb.
omit_collection : Don't include the page's collection ("posts" by default, for posts) in the breadcrumbs.
omit_categories : Don't include the page's categories in the breadcrumbs.
omit_date : Don't include the post's date (year, month and day) in the breadcrumbs.
omit_year : Don't include the post's year in the breadcrumbs.
omit_month : Don't include the post's month in the breadcrumbs.
omit_date : Don't include the post's date in the breadcrumbs.