Merge pull request #4161 from solgenomics/topic/TomDelDb
[sgn.git] / docs / _includes / crumbs.html
blob59f682d373b08f10351405af98fdda19b2bf3da6
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>&nbsp;&nbsp;
6 {% capture the_crumbs %}
7 <span>
8 {% for pg in entries %}
9 {% if parentURL contains pg.url and pg.url!="/" %}
10 &larr;<a href="{{ site.baseurl }}{{pg.url}}">{{pg.title}}</a>&nbsp;&nbsp;
11 {% endif %}
12 {% endfor %}
13 </span>
14 {% endcapture %}
15 {{the_crumbs | strip_newlines}}
16 {% else %}
17 <br>
18 {% endif %}