update breadcrumb
This commit is contained in:
parent
259b696f1b
commit
c6a1ba7c1d
4 changed files with 14 additions and 24 deletions
|
@ -16,4 +16,5 @@ read_more: "Read More ›"
|
||||||
if_you_are_not_redirected_automatically: "If you are not redirected automatically,"
|
if_you_are_not_redirected_automatically: "If you are not redirected automatically,"
|
||||||
click_here: "click here"
|
click_here: "click here"
|
||||||
next_post_in: "Next Post in"
|
next_post_in: "Next Post in"
|
||||||
previous_post_in: "Previous Post in"
|
previous_post_in: "Previous Post in"
|
||||||
|
breadcrumb_start: "Start"
|
|
@ -5,27 +5,15 @@
|
||||||
*
|
*
|
||||||
{% endcomment %}
|
{% endcomment %}
|
||||||
|
|
||||||
|
|
||||||
{% capture url_parts %} {{ page.url | remove: "/index.html" | replace:'/'," " }}{% endcapture %}
|
|
||||||
{% capture num_parts %}{{ url_parts | number_of_words | minus: 1 }}{% endcapture %}
|
|
||||||
{% assign previous="" %}
|
|
||||||
<nav class="breadcrumbs" role="menubar" aria-label="breadcrumbs">
|
<nav class="breadcrumbs" role="menubar" aria-label="breadcrumbs">
|
||||||
{% if num_parts == "0" or num_parts == "-1" %}
|
<li><a href="/">{{ site.data.language.breadcrumb_start }}</a></li>
|
||||||
<a href="{{ site.url }}">Start</a>
|
{% assign crumbs = page.url | split: '/' %}
|
||||||
{% else %}
|
{% assign crumbs_total = crumbs | size | minus: 1 %}
|
||||||
<a href="{{ site.url }}">Start</a>
|
{% for crumb in crumbs offset: 1 %}
|
||||||
|
{% if forloop.index == crumbs_total %}
|
||||||
{% for unused in page.content limit:num_parts %}
|
<li class="current">{{ page.title }}</li>
|
||||||
{% capture first_word %}{{ url_parts | truncatewords:1 | remove:"..."}}{% endcapture %}
|
{% else %}
|
||||||
{% capture previous %}{{ previous }}/{{ first_word }}{% endcapture %}
|
<li><a href="{% assign crumb_limit = forloop.index | plus: 1 %}{% for crumb in crumbs limit: crumb_limit %}{{ crumb | append: '/' }}{% endfor %}">{{ crumb | replace:'-',' ' }}</a>
|
||||||
|
{% endif %}
|
||||||
<a href="{{previous}}">{{ first_word }}</a>
|
|
||||||
|
|
||||||
{% capture url_parts %}{{ url_parts | remove_first:first_word }}{% endcapture %}
|
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endif %}
|
</nav>
|
||||||
<a class="current" href="#">{{ page.title }}</a>
|
|
||||||
</nav>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
---
|
---
|
||||||
layout: default
|
layout: default
|
||||||
format: blog-index
|
format: blog-index
|
||||||
|
# Don't index these pages dear Google.
|
||||||
noindex: true
|
noindex: true
|
||||||
---
|
---
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
|
|
@ -8,7 +8,7 @@ header:
|
||||||
permalink: "/changelog/"
|
permalink: "/changelog/"
|
||||||
---
|
---
|
||||||
2015-02-25 // Version 0.99.1
|
2015-02-25 // Version 0.99.1
|
||||||
: Added support for Google Analtics. Added `_include/next-previous-post-in-category.html` to generate links from one post in a category to another post in that same category. Example at the bottom of [Grid & Colors]({{ site.url }}/design/grid/#bottom).
|
: Added support for Google Analtics. Added `_include/next-previous-post-in-category.html` to generate links from one post in a category to another post in that same category. Example at the bottom of [Grid & Colors]({{ site.url }}/design/grid/#bottom). Added `noindex`-variable for search engine optimization ([read more](https://support.google.com/webmasters/answer/93710?hl=en)).
|
||||||
|
|
||||||
2015-02-19 // Version 0.99
|
2015-02-19 // Version 0.99
|
||||||
: Yes! Now *Feeling Responsive* uses the built-in sass-support by Jekyll. Open `_sass` and dig deeper into customizing this theme using your colors, typography and so on...
|
: Yes! Now *Feeling Responsive* uses the built-in sass-support by Jekyll. Open `_sass` and dig deeper into customizing this theme using your colors, typography and so on...
|
||||||
|
|
Reference in a new issue