Skip to content

Commit

Permalink
Fix widget catalog category pages being empty due to liquidjs regression
Browse files Browse the repository at this point in the history
  • Loading branch information
parlough committed Dec 26, 2024
1 parent 39fee17 commit 68f98a8
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 68f98a8

Please sign in to comment.