f8c82ad4a2
- .collection wrappt Titel + Inhalt in die Lesespalte (≈48.5rem, zentriert); margin-top spacing-sm = identischer Oberabstand wie Artikel. - Titel-Unterstrich + Kategorie-Linien in der Sektionsfarbe: Archiv kusa (grün), Library ichigo (rot). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
37 lines
1.3 KiB
HTML
37 lines
1.3 KiB
HTML
{{ define "main" }}
|
|
<div class="collection" style="--section-color: var(--palette-ichigo)">
|
|
<h1 class="collection-title">{{ .Title }}</h1>
|
|
<div class="collection-inner">
|
|
{{ .Content }}
|
|
|
|
{{ $pages := where site.RegularPages "Section" "library" }}
|
|
{{ $groups := dict }}
|
|
{{ range $pages }}
|
|
{{ $g := .Params.group | default "Allgemein" }}
|
|
{{ $existing := index $groups $g | default slice }}
|
|
{{ $groups = merge $groups (dict $g ($existing | append .)) }}
|
|
{{ end }}
|
|
|
|
{{ if $pages }}
|
|
<section class="atlas">
|
|
{{ range $g, $ps := $groups }}
|
|
<article class="atlas-section">
|
|
<h2>{{ $g }}</h2>
|
|
<ul class="atlas-list">
|
|
{{ range sort $ps "Title" }}
|
|
<li>
|
|
<a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a>
|
|
{{ with .Params.summary }}<span class="list-meta text-muted"> — {{ . }}</span>{{ end }}
|
|
</li>
|
|
{{ end }}
|
|
</ul>
|
|
</article>
|
|
{{ end }}
|
|
</section>
|
|
{{ else }}
|
|
<p class="text-muted"><em>Noch keine Einträge — der erste entsteht im Redaktions-Editor.</em></p>
|
|
{{ end }}
|
|
</div>
|
|
</div>
|
|
{{ end }}
|