ui(wiki): Header wie die übrigen Sektionen (section-header), kein doppeltes 'Wiki'

- Übersicht: nur ein section-title (Rubrik 'Wiki' über Titel 'Wiki' entfernt)
- Einzelseite: Rubrik = Gruppe (z.B. Begriffe), Titel = Seitentitel
- Titel über die volle Breite (8px-Akzentlinie wie Library), Spalten darunter
- ungenutzte .wiki-rubric/.wiki-head CSS entfernt

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-06-04 12:50:12 +02:00
parent 3dd8d5edd4
commit 0f80378a7c
3 changed files with 14 additions and 17 deletions
+6 -7
View File
@@ -1,13 +1,12 @@
{{ define "main" }}
<header class="section-header">
<h1 class="section-title">{{ .Title }}</h1>
</header>
<div class="wiki">
<aside class="wiki-side">{{ partial "wiki-nav.html" . }}</aside>
<article class="wiki-page">
<header class="wiki-head">
<p class="wiki-rubric">Wiki</p>
<h1>{{ .Title }}</h1>
</header>
<div class="wiki-page">
<div class="single-content">{{ .Content }}</div>
{{ $pages := where site.RegularPages "Section" "wiki" }}
@@ -37,6 +36,6 @@
{{ else }}
<p class="text-muted"><em>Noch keine Einträge — der erste entsteht im Redaktions-Editor.</em></p>
{{ end }}
</article>
</div>
</div>
{{ end }}
+8 -8
View File
@@ -1,14 +1,14 @@
{{ define "main" }}
<header class="section-header">
<p class="section-rubric">{{ with .Params.group }}{{ . }}{{ else }}Wiki{{ end }}</p>
<h1 class="section-title">{{ .Title }}</h1>
{{ with .Params.summary }}<p class="section-description">{{ . }}</p>{{ end }}
</header>
<div class="wiki">
<aside class="wiki-side">{{ partial "wiki-nav.html" . }}</aside>
<article class="wiki-page">
<header class="wiki-head">
<p class="wiki-rubric">Wiki{{ with .Params.group }} · {{ . }}{{ end }}</p>
<h1>{{ .Title }}</h1>
{{ with .Params.summary }}<p class="single-summary">{{ . }}</p>{{ end }}
</header>
<div class="wiki-page">
{{ $hasToC := .Params.toc | default false }}
{{ $headers := findRE "<h[2-6]" .Content }}
{{ if and $hasToC (ge (len $headers) 2) }}
@@ -28,6 +28,6 @@
<a href="{{ site.Params.repoURL }}/_edit/branch/main/content/{{ .Path }}" rel="nofollow">bearbeiten ↗</a>
{{ end }}
</div>
</article>
</div>
</div>
{{ end }}