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
-2
View File
@@ -738,8 +738,6 @@ a.byline-author:hover, a.journal-author:hover { color: var(--accent); }
.wiki-nav li a.is-current { color: var(--color-text-primary); font-weight: 600; border-left-color: var(--accent); } .wiki-nav li a.is-current { color: var(--color-text-primary); font-weight: 600; border-left-color: var(--accent); }
.wiki-page { min-width: 0; } .wiki-page { min-width: 0; }
.wiki-rubric { text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.72rem; color: var(--color-text-muted); margin: 0 0 0.2em; }
.wiki-head h1 { margin: 0 0 0.2em; }
.wiki-index { margin-top: var(--spacing-md); } .wiki-index { margin-top: var(--spacing-md); }
.wiki-group { margin-bottom: var(--spacing-md); } .wiki-group { margin-bottom: var(--spacing-md); }
.wiki-group h2 { font-family: var(--font-family-serif); font-size: 1.1rem; margin: 0 0 0.4em; } .wiki-group h2 { font-family: var(--font-family-serif); font-size: 1.1rem; margin: 0 0 0.4em; }
+6 -7
View File
@@ -1,13 +1,12 @@
{{ define "main" }} {{ define "main" }}
<header class="section-header">
<h1 class="section-title">{{ .Title }}</h1>
</header>
<div class="wiki"> <div class="wiki">
<aside class="wiki-side">{{ partial "wiki-nav.html" . }}</aside> <aside class="wiki-side">{{ partial "wiki-nav.html" . }}</aside>
<article class="wiki-page"> <div class="wiki-page">
<header class="wiki-head">
<p class="wiki-rubric">Wiki</p>
<h1>{{ .Title }}</h1>
</header>
<div class="single-content">{{ .Content }}</div> <div class="single-content">{{ .Content }}</div>
{{ $pages := where site.RegularPages "Section" "wiki" }} {{ $pages := where site.RegularPages "Section" "wiki" }}
@@ -37,6 +36,6 @@
{{ else }} {{ else }}
<p class="text-muted"><em>Noch keine Einträge — der erste entsteht im Redaktions-Editor.</em></p> <p class="text-muted"><em>Noch keine Einträge — der erste entsteht im Redaktions-Editor.</em></p>
{{ end }} {{ end }}
</article> </div>
</div> </div>
{{ end }} {{ end }}
+8 -8
View File
@@ -1,14 +1,14 @@
{{ define "main" }} {{ 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"> <div class="wiki">
<aside class="wiki-side">{{ partial "wiki-nav.html" . }}</aside> <aside class="wiki-side">{{ partial "wiki-nav.html" . }}</aside>
<article class="wiki-page"> <div 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>
{{ $hasToC := .Params.toc | default false }} {{ $hasToC := .Params.toc | default false }}
{{ $headers := findRE "<h[2-6]" .Content }} {{ $headers := findRE "<h[2-6]" .Content }}
{{ if and $hasToC (ge (len $headers) 2) }} {{ 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> <a href="{{ site.Params.repoURL }}/_edit/branch/main/content/{{ .Path }}" rel="nofollow">bearbeiten ↗</a>
{{ end }} {{ end }}
</div> </div>
</article> </div>
</div> </div>
{{ end }} {{ end }}