This commit is contained in:
Lea Verou
2025-01-14 11:00:01 -05:00
parent e367c0ef29
commit bf852b1296

View File

@@ -1,7 +1,7 @@
{# Some collections (like "patterns") will not have any items in the alpha build for example. So this checks to make sure the collection exists. #}
{% if collections[tag] -%}
{% set groupUrl %}/docs/{{ tag }}/{% endset %}
<wa-details {{ (tag in (tags or [])) or (groupUrl in page.url) | attr('open') }}>
<wa-details {{ ((tag in (tags or [])) or (groupUrl in page.url)) | attr('open') }}>
<h2 slot="summary">
{% if groupUrl | getCollectionItemFromUrl %}
<a href="{{ groupUrl }}" title="Overview">{{ title or (tag | capitalize) }}