What are some good ways to implement breadcrumbs on a Jekyll site?

后端 未结 12 2561
南方客
南方客 2020-12-14 04:47

I\'m aware that there are single-level breadcrumbs in http://raphinou.github.com/jekyll-base/ but I\'m looking for some good ways to have breadcrumbs on a Jekyll sit

12条回答
  •  伪装坚强ぢ
    2020-12-14 05:16

    Here's my solution, which works with Jekyll 3.1.3 and GitHub Pages as of today. Like some solutions others have given, it simply inspects the page's URL and builds the breadcrumbs from it.

    {% unless page.hide-breadcrumbs %}
      
    {% endunless %}
    

提交回复
热议问题