mirror of
https://github.com/shoelace-style/webawesome.git
synced 2026-01-12 12:09:26 +00:00
- Sidebar, overview listings, breadcrumbs now based on actual parent-child relationships, rather than increasingly outdated heuristics - parent properties are now generated automatically from the URL structure, and need only be specified to override that default - Ability to group by page hierarchy in overview pages, where pages that have >= 2 children become categories Smaller improvements: - More flexible syntax for specifying the params of overview pages - [Overviews] Hide group heading if only one group is present - parentItem and parentUrl properties that can be used on any page - Alias a collection as the children of a page (useful for "virtual" parents like Layout) - Do not error if a page card icon is missing
14 lines
433 B
Plaintext
14 lines
433 B
Plaintext
{%- if not page.data.unlisted -%}
|
|
<a href="{{ page.url }}"{{ page.data.keywords | attr('data-keywords') }}>
|
|
<wa-card with-header>
|
|
<div slot="header">
|
|
{% include "svgs/" + (page.data.icon or "thumbnail-placeholder") + ".njk" ignore missing %}
|
|
</div>
|
|
<span class="page-name">{{ page.data.title }}</span>
|
|
{% if pageSubtitle -%}
|
|
<div class="wa-caption-s">{{ pageSubtitle }}</div>
|
|
{%- endif %}
|
|
</wa-card>
|
|
</a>
|
|
{% endif %}
|