Skip to content

Commit

Permalink
Make it possible to enable breadcrumbs per page (mmistakes#3096)
Browse files Browse the repository at this point in the history
* Make it possible to disable breadcrumbs per page

* Update single.html

* Update single.html
  • Loading branch information
lsolesen authored May 27, 2022
1 parent 41a33c7 commit e648fce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions _layouts/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
{% include page__hero_video.html %}
{% endif %}

{% if page.url != "/" and site.breadcrumbs %}
{% if page.url != "/" and site.breadcrumbs or page.breadcrumbs != false %}
{% unless paginator %}
{% include breadcrumbs.html %}
{% endunless %}
Expand Down Expand Up @@ -88,4 +88,4 @@ <h2 class="page__related-title">{{ site.data.ui-text[site.locale].related_label
</div>
</div>
{% endif %}
</div>
</div>

0 comments on commit e648fce

Please sign in to comment.