Fix path bugs in breadcrumbs
This commit is contained in:
parent
0cba582d02
commit
b2611c3f2e
4 changed files with 13 additions and 10 deletions
|
@ -58,7 +58,6 @@ social:
|
||||||
- "https://facebook.com/michaelrose"
|
- "https://facebook.com/michaelrose"
|
||||||
|
|
||||||
# Reading Files
|
# Reading Files
|
||||||
safe: true
|
|
||||||
include:
|
include:
|
||||||
- .htaccess
|
- .htaccess
|
||||||
- _pages
|
- _pages
|
||||||
|
@ -228,7 +227,7 @@ tags:
|
||||||
# category: archive-taxonomy
|
# category: archive-taxonomy
|
||||||
# tag: archive-taxonomy
|
# tag: archive-taxonomy
|
||||||
# permalinks:
|
# permalinks:
|
||||||
# category: /:name/
|
# category: /categories/:name/
|
||||||
# tag: /tags/:name/
|
# tag: /tags/:name/
|
||||||
|
|
||||||
# HTML Compression
|
# HTML Compression
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
{% else %}
|
{% else %}
|
||||||
{% assign i = i | plus: 1 %}
|
{% assign i = i | plus: 1 %}
|
||||||
<li itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">
|
<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 }}" />
|
<meta itemprop="position" content="{{ i }}" />
|
||||||
</li>
|
</li>
|
||||||
<span class="sep">{{ site.breadcrumb_separator }}</span>
|
<span class="sep">{{ site.breadcrumb_separator }}</span>
|
||||||
|
|
|
@ -3,10 +3,14 @@ layout: default
|
||||||
author_profile: false
|
author_profile: false
|
||||||
---
|
---
|
||||||
|
|
||||||
<div class="archive">
|
<div id="main" role="main">
|
||||||
<h1 class="page__title">{{ page.title }}</h1>
|
{% include sidebar.html %}
|
||||||
{% include base_path %}
|
|
||||||
{% for post in page.posts %}
|
<div class="archive">
|
||||||
{% include archive-single.html %}
|
<h1 class="page__title">{{ page.title }}</h1>
|
||||||
{% endfor %}
|
{% include base_path %}
|
||||||
|
{% for post in page.posts %}
|
||||||
|
{% include archive-single.html %}
|
||||||
|
{% endfor %}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
|
@ -10,7 +10,7 @@ author_profile: false
|
||||||
|
|
||||||
{% for tag in group_names %}
|
{% for tag in group_names %}
|
||||||
{% assign posts = group_items[forloop.index0] %}
|
{% 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 %}
|
{% for post in posts %}
|
||||||
{% include archive-single.html %}
|
{% include archive-single.html %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
Loading…
Reference in a new issue