Only enable breadcrumbs when using Jekyll Archives category pages
This commit is contained in:
parent
2c2d5fb616
commit
7fa159a9a2
2 changed files with 2 additions and 2 deletions
|
@ -29,7 +29,7 @@
|
|||
{% else %}
|
||||
{% assign i = i | plus: 1 %}
|
||||
<li itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">
|
||||
<a href="{{ base_path }}{{ crumb | prepend: path_type | prepend: crumb_path }}" itemprop="item"><span itemprop="name">{{ crumb | replace: '-', ' ' | replace: '%20', ' ' | capitalize }}</span></a>
|
||||
<a href="{{ base_path }}{{ crumb | slugify | 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>
|
||||
|
|
|
@ -30,7 +30,7 @@ layout: compress
|
|||
</div>
|
||||
{% endif %}
|
||||
|
||||
{% if site.breadcrumbs and site.categories.type %}
|
||||
{% if site.breadcrumbs and site.categories.type == 'jekyll-archives' %}
|
||||
{% include breadcrumbs.html %}
|
||||
{% endif %}
|
||||
|
||||
|
|
Loading…
Reference in a new issue