mirror of
https://github.com/shoelace-style/webawesome.git
synced 2026-01-19 07:29:14 +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
27 lines
788 B
Plaintext
27 lines
788 B
Plaintext
---
|
|
layout: page-outline
|
|
---
|
|
{% set forTag = forTag or (page.url | split('/') | last) %}
|
|
{% if description %}
|
|
<div class="index-summary">{{ description | markdown | safe }}</div>
|
|
{% endif %}
|
|
|
|
<div id="block-filter">
|
|
<wa-input type="search" placeholder="Search {{ title }}" clearable autofocus>
|
|
<wa-icon slot="prefix" name="search"></wa-icon>
|
|
</wa-input>
|
|
</div>
|
|
|
|
{% set allPages = allPages or collections[forTag] %}
|
|
{% if allPages and allPages.length > 0 %}
|
|
{% include "grouped-pages.njk" %}
|
|
{% endif %}
|
|
|
|
<link href="/assets/styles/filter.css" rel="stylesheet">
|
|
<script type="module" src="/assets/scripts/filter.js"></script>
|
|
|
|
{% if content | trim %}
|
|
<wa-divider style="--spacing: var(--wa-space-3xl)"></wa-divider> {# Temp fix for spacing issue #}
|
|
{{ content | safe }}
|
|
{% endif %}
|