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 and sehyeon1104 committed Jan 9, 2023
1 parent 915c880 commit 81b0124
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 81b0124

Please sign in to comment.