From 5946bd4ea06571cbdacdb668a4f43ff2064c85d9 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 e3126bdc..bb16f536 100644 --- a/_layouts/single.html +++ b/_layouts/single.html @@ -8,7 +8,11 @@ layout: default {% 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 %}