Skip to content

Commit

Permalink
Fix widget catalog category pages being empty due to liquidjs regress…
Browse files Browse the repository at this point in the history
…ion (#11549)

A regression to `break` in the latest liquidjs release caused each
category page's contents to not be rendered. This fixes this by instead
relying on the built-in `find` filter which is simpler and works in
versions with and without the behavior change.

Fixes #11533
Fixes #11534
Fixes #11535
Fixes #11536
Fixes #11537
Fixes #11538
Fixes #11539
Fixes #11540
Fixes #11541
Fixes #11543
Fixes #11547
Fixes #11548
Fixes #11550
Fixes #11551
  • Loading branch information
parlough authored Dec 26, 2024
1 parent 39fee17 commit fdfbca0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
7 changes: 1 addition & 6 deletions src/_includes/docs/catalog-page-material.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
{% for section in catalog.index %}
{% if section.name == categoryName %}
{% assign category = section %}
{% break %}
{% endif %}
{% endfor %}
{% assign category = catalog.index | find: "name", categoryName %}

{% if category.subcategories -%}
{% for sub in category.subcategories -%}
Expand Down
7 changes: 1 addition & 6 deletions src/_includes/docs/catalog-page.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
{% for section in catalog.index %}
{% if section.name == categoryName %}
{% assign category = section %}
{% break %}
{% endif %}
{% endfor %}
{% assign category = catalog.index | find: "name", categoryName %}

{{category.description}}

Expand Down

0 comments on commit fdfbca0

Please sign in to comment.