Skip to content

Commit

Permalink
Make it possible to enable breadcrumbs per page (#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 committed May 27, 2022
1 parent f926704 commit 65237df
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>

1 comment on commit 65237df

@tianyikillua
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This commit has enabled breadcrumbs for all my posts...

Please sign in to comment.