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/
This commit is contained in:
iBug 2022-05-31 00:13:22 +08:00 committed by GitHub
parent 3d65710bf7
commit 5946bd4ea0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -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 %}