Skip to content

Commit 5946bd4

Browse files
authored
Fix mmistakes#3668 breaking "disable per-page when globally enabled" (mmistakes#3669)
* Fix mmistakes#3668 breaking "disable per-page when globally enabled" * `default:` filter doesn't fit here https://shopify.github.io/liquid/filters/default/
1 parent 3d65710 commit 5946bd4

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

_layouts/single.html

+5-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,11 @@
88
{% include page__hero_video.html %}
99
{% endif %}
1010

11-
{% if page.url != "/" and site.breadcrumbs or page.breadcrumbs %}
11+
{% assign breadcrumbs_enabled = site.breadcrumbs %}
12+
{% if page.breadcrumbs != null %}
13+
{% assign breadcrumbs_enabled = page.breadcrumbs %}
14+
{% endif %}
15+
{% if page.url != "/" and breadcrumbs_enabled %}
1216
{% unless paginator %}
1317
{% include breadcrumbs.html %}
1418
{% endunless %}

0 commit comments

Comments
 (0)