{{ define "main" }} {{ $section := "" }} {{ with .Parent }}{{ $section = path.Base .RelPermalink }}{{ end }} {{ $cover := .Params.cover_image }} {{ $color := .Params.color }} {{/* Cover image first (full-bleed, directly under the masthead) */}} {{ if $cover }} {{ end }}

{{ .Title }}

{{ with .Params.summary }}

{{ . }}

{{ end }} {{ $author := .Params.author | default site.Params.author.name }} {{ $aslug := urlize $author }} {{ if not .Params.author }}{{ with index site.Data.authors site.Params.author.email }}{{ with .slug }}{{ $aslug = . }}{{ end }}{{ end }}{{ end }} {{ $authorPage := and (ne $aslug "") (site.GetPage (printf "/authors/%s" $aslug)) }} {{ if or $author .Date }} {{ end }} {{/* Reading time + last-modified — Republik-style, directly below byline */}} {{ $showReadingTime := .Params.showreadingtime | default site.Params.showreadingtime | default true }} {{ $showLastMod := .Params.showlastmod | default site.Params.showlastmod | default false }} {{ $hasLastmod := and $showLastMod .Lastmod (ne (.Lastmod.Format "2006-01-02") (.Date.Format "2006-01-02")) }} {{ if or (and $showReadingTime .ReadingTime) $hasLastmod }}

{{ if and $showReadingTime .ReadingTime }}{{ .ReadingTime }} min Lesezeit{{ end }} {{ if $hasLastmod }}{{ if and $showReadingTime .ReadingTime }} · {{ end }}Aktualisiert am {{ .Lastmod.Format "02.01.2006" }}{{ end }}

{{ end }}
{{/* Table of Contents */}} {{ $hasToC := .Params.toc | default true }} {{ $headers := findRE " Inhalt
{{ .TableOfContents }}
{{ end }}
{{ .Content }}
{{/* Tags as small pills at the bottom — Republik-style, no hash symbol */}} {{- with .Params.tags }} {{- end }} {{/* Herkunft/Zitieren — nur bei Library-Beiträgen (lebendes Dokument). */}} {{ if eq .Section "library" }} {{ partial "provenance.html" . }} {{ end }} {{/* Dialog nur bei Artikeln (Library), nicht auf Seiten wie Spenden/Manifest. */}} {{ if eq .Section "library" }} → Dialog {{ end }}
{{ end }}