Import of the new theme
This commit is contained in:
parent
04104f0bff
commit
0693a85c3f
331 changed files with 21077 additions and 8782 deletions
17
_includes/breadcrumb.html
Normal file
17
_includes/breadcrumb.html
Normal file
|
@ -0,0 +1,17 @@
|
|||
{% comment %}
|
||||
*
|
||||
* http://stackoverflow.com/questions/9612235/what-are-some-good-ways-to-implement-breadcrumbs-on-a-jekyll-site
|
||||
*
|
||||
{% endcomment %}
|
||||
|
||||
<nav class="breadcrumbs" role="menubar" aria-label="breadcrumbs">
|
||||
<li><a href="{{ site.url }}">{{ site.data.language.breadcrumb_start }}</a></li>
|
||||
{% assign crumbs = page.url | split: '/' %}
|
||||
{% for crumb in crumbs offset: 1 %}
|
||||
{% if forloop.last %}
|
||||
<li class="current">{{ page.title }}</li>
|
||||
{% else %}
|
||||
<li><a href="{{ site.url }}{% assign crumb_limit = forloop.index | plus: 1 %}{% for crumb in crumbs limit: crumb_limit %}{{ crumb | append: '/' }}{% endfor %}">{{ crumb | replace:'-',' ' }}</a>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</nav>
|
Reference in a new issue