Don’t render children on the top level as well

This commit is contained in:
Lea Verou
2025-01-03 16:00:36 -05:00
parent 19fd55ca97
commit 1dcf895be1

View File

@@ -12,7 +12,9 @@
</h2>
<ul>
{% for page in collections[tag] | sort %}
{% include 'sidebar-link.njk' %}
{% if not page.data.parent -%}
{% include 'sidebar-link.njk' %}
{%- endif %}
{% endfor %}
</ul>
</wa-details>