From f5abf6ee1282f60d5f296a36329655e18d0dfd2b Mon Sep 17 00:00:00 2001 From: iBug Date: Tue, 31 May 2022 00:13:22 +0800 Subject: [PATCH] Fix #3668 breaking "disable per-page when globally enabled" (#3669) * Fix #3668 breaking "disable per-page when globally enabled" * `default:` filter doesn't fit here https://shopify.github.io/liquid/filters/default/ --- _layouts/single.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/_layouts/single.html b/_layouts/single.html index e3126bdc856d..bb16f536415c 100644 --- a/_layouts/single.html +++ b/_layouts/single.html @@ -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 %}