Fix path bugs in breadcrumbs

This commit is contained in:
Michael Rose 2016-04-04 14:20:47 -04:00
parent 0cba582d02
commit b2611c3f2e
4 changed files with 13 additions and 10 deletions

View file

@ -58,7 +58,6 @@ social:
- "https://facebook.com/michaelrose"
# Reading Files
safe: true
include:
- .htaccess
- _pages
@ -228,7 +227,7 @@ tags:
# category: archive-taxonomy
# tag: archive-taxonomy
# permalinks:
# category: /:name/
# category: /categories/:name/
# tag: /tags/:name/
# HTML Compression

View file

@ -29,7 +29,7 @@
{% else %}
{% assign i = i | plus: 1 %}
<li itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">
<a href="{{ base_path }}{{ crumb | slugify | prepend: path_type | prepend: crumb_path }}" itemprop="item"><span itemprop="name">{{ crumb | replace: '-', ' ' | replace: '%20', ' ' | capitalize }}</span></a>
<a href="{{ base_path }}{{ crumb | downcase | replace: '%20', '-' | prepend: path_type | prepend: crumb_path }}" itemprop="item"><span itemprop="name">{{ crumb | replace: '-', ' ' | replace: '%20', ' ' | capitalize }}</span></a>
<meta itemprop="position" content="{{ i }}" />
</li>
<span class="sep">{{ site.breadcrumb_separator }}</span>

View file

@ -3,6 +3,9 @@ layout: default
author_profile: false
---
<div id="main" role="main">
{% include sidebar.html %}
<div class="archive">
<h1 class="page__title">{{ page.title }}</h1>
{% include base_path %}
@ -10,3 +13,4 @@ author_profile: false
{% include archive-single.html %}
{% endfor %}
</div>
</div>

View file

@ -10,7 +10,7 @@ author_profile: false
{% for tag in group_names %}
{% assign posts = group_items[forloop.index0] %}
<h2 id="{{ tag | slugify }}" class="archive__subtitle">{{ tag }}</h2>
<h2 id="{{ tag | downcase }}" class="archive__subtitle">{{ tag }}</h2>
{% for post in posts %}
{% include archive-single.html %}
{% endfor %}