mirror of
https://github.com/shoelace-style/webawesome.git
synced 2026-01-12 12:09:26 +00:00
* Fix outline for headings that have links Previously produced blank items because it assumed any link in a heading is an anchor * Filter unlisted items from overviews Previously they were filtered only when the card was rendered, so their heading was still shown * [Overview] Add id to group headings * Hide headings from empty groups Should never happen but you never know * [Overview] Ensure "Other" is always last even when no sorting
17 lines
455 B
Plaintext
17 lines
455 B
Plaintext
{% if page | show -%}
|
|
<li>
|
|
<a href="{{ page.url }}">{{ page.data.title }}</a>
|
|
{% if page.data.status == 'experimental' %}<wa-icon name="flask"></wa-icon>{% endif %}
|
|
{% if page.data.isPro %}<wa-badge class="pro">PRO</wa-badge>{% endif %}
|
|
|
|
{% set children = page.data.children %}
|
|
{% if children.length > 0 %}
|
|
<ul>
|
|
{% for page in children %}
|
|
{% include 'sidebar-link.njk' %}
|
|
{% endfor %}
|
|
</ul>
|
|
{% endif %}
|
|
</li>
|
|
{%- endif %}
|