Files
OPENBUREAU/layouts/wiki/single.html
T
karim 54f03270d0 ui(wiki): vollbreiter Header wie Library (gleiche max-width), Spalten darunter
Wiki-Header (section-header) spannt jetzt die volle Spalte (grid-column 1/-1)
und die .wiki-Box hat dieselbe max-width/Zentrierung wie der normale Inhalt —
so fluchten Library- und Wiki-Header. Seitenleiste + Inhalt darunter.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-04 14:30:44 +02:00

33 lines
1.1 KiB
HTML

{{ define "main" }}
<div class="wiki">
<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>
<aside class="wiki-side">{{ partial "wiki-nav.html" . }}</aside>
<div class="wiki-page">
{{ $hasToC := .Params.toc | default false }}
{{ $headers := findRE "<h[2-6]" .Content }}
{{ if and $hasToC (ge (len $headers) 2) }}
<nav class="toc">
<strong>Inhalt</strong>
<div class="toc-content">{{ .TableOfContents }}</div>
</nav>
{{ end }}
<div class="single-content wiki-content">
{{ .Content }}
</div>
<div class="wiki-foot">
{{ if .Lastmod }}<span>Zuletzt bearbeitet am {{ .Lastmod.Format "02.01.2006" }}</span>{{ end }}
{{ with .File }}
<a href="{{ site.Params.repoURL }}/_edit/branch/main/content/{{ .Path }}" rel="nofollow">bearbeiten ↗</a>
{{ end }}
</div>
</div>
</div>
{{ end }}