1 {% capture slug %}{{ page.url | split:
"/" | last }}{% endcapture %}
2 {% capture parentURL %}{{ page.url | remove: slug | replace:
"//",
"/" }}{% endcapture %}
3 {% assign entries = site.pages | sort:
"path" %}
4 {% if parentURL!=page.url %}
5 <a href=
"{{ site.baseurl }}/">Home
</a>
6 {% capture the_crumbs %}
8 {% for pg in entries %}
9 {% if parentURL contains pg.url and pg.url!=
"/" %}
10 ←<a href=
"{{ site.baseurl }}{{pg.url}}">{{pg.title}}
</a>
15 {{the_crumbs | strip_newlines}}