Skip to content

Commit

Permalink
Fix mmistakes#3668 breaking "disable per-page when globally enabled" (m…
Browse files Browse the repository at this point in the history
…mistakes#3669)

* Fix mmistakes#3668 breaking "disable per-page when globally enabled"

* `default:` filter doesn't fit here

https://shopify.github.io/liquid/filters/default/
  • Loading branch information
iBug committed May 30, 2022
1 parent 3d65710 commit 5946bd4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion _layouts/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@
{% include page__hero_video.html %}
{% endif %}

{% if page.url != "/" and site.breadcrumbs or page.breadcrumbs %}
{% assign breadcrumbs_enabled = site.breadcrumbs %}
{% if page.breadcrumbs != null %}
{% assign breadcrumbs_enabled = page.breadcrumbs %}
{% endif %}
{% if page.url != "/" and breadcrumbs_enabled %}
{% unless paginator %}
{% include breadcrumbs.html %}
{% endunless %}
Expand Down

0 comments on commit 5946bd4

Please sign in to comment.