ui: Provenance als Pills + Byline nur bei Library-Beiträgen

- Version/Verlauf/Zitieren als dezente Outline-Pills (wie Versions-Marke),
  „·"-Trenner entfernt
- Byline (Autor) + „Aktualisiert am" nur noch bei Library-Beiträgen; Seiten
  wie Manifest/Kontakt/Spenden/Colophon zeigen sie nicht mehr

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-06-02 01:42:28 +02:00
parent 0ce2c73004
commit 22c9b9ff61
3 changed files with 38 additions and 32 deletions
+11 -7
View File
@@ -1484,18 +1484,22 @@ img:hover { filter: grayscale(0%); }
font-size: var(--font-size-small); font-size: var(--font-size-small);
color: var(--color-text-muted); color: var(--color-text-muted);
} }
.provenance a { color: var(--color-text-muted); text-decoration: none; } /* Version / Verlauf / Zitieren als dezente Outline-Pills (wie die Versions-Marke). */
.provenance a:hover { color: var(--accent); } .provenance a,
.provenance .prov-sep { opacity: 0.5; }
.prov-cite { .prov-cite {
font: inherit; display: inline-block;
font-family: var(--font-family-mono);
font-size: var(--font-size-small);
color: var(--color-text-muted); color: var(--color-text-muted);
background: none; background: none;
border: none; border: 1px solid var(--color-border);
padding: 0; border-radius: 999px;
padding: 0.12em 0.7em;
text-decoration: none;
cursor: pointer; cursor: pointer;
} }
.prov-cite:hover { color: var(--accent); } .provenance a:hover,
.prov-cite:hover { border-color: var(--accent); color: var(--accent); }
/* Aufklappendes Zitat-Panel: zeigt die Quellenangabe lesbar + Kopieren. */ /* Aufklappendes Zitat-Panel: zeigt die Quellenangabe lesbar + Kopieren. */
.prov-citation { .prov-citation {
+27 -23
View File
@@ -15,30 +15,34 @@
{{ with .Params.summary }} {{ with .Params.summary }}
<p class="single-summary">{{ . }}</p> <p class="single-summary">{{ . }}</p>
{{ end }} {{ end }}
{{ $author := .Params.author | default site.Params.author.name }} {{/* Byline + Meta nur bei Library-Beiträgen — Seiten wie Manifest,
{{ $aslug := urlize $author }} Kontakt, Spenden brauchen weder Autor noch „Aktualisiert am". */}}
{{ if not .Params.author }}{{ with index site.Data.authors site.Params.author.email }}{{ with .slug }}{{ $aslug = . }}{{ end }}{{ end }}{{ end }} {{ if eq .Section "library" }}
{{ $authorPage := and (ne $aslug "") (site.GetPage (printf "/authors/%s" $aslug)) }} {{ $author := .Params.author | default site.Params.author.name }}
{{ if or $author .Date }} {{ $aslug := urlize $author }}
<p class="single-byline"> {{ if not .Params.author }}{{ with index site.Data.authors site.Params.author.email }}{{ with .slug }}{{ $aslug = . }}{{ end }}{{ end }}{{ end }}
{{- with $author -}} {{ $authorPage := and (ne $aslug "") (site.GetPage (printf "/authors/%s" $aslug)) }}
{{- if $authorPage -}}<a class="byline-author" href="{{ $authorPage.RelPermalink }}">{{ . }}</a> {{ if or $author .Date }}
{{- else -}}<span class="byline-author">{{ . }}</span>{{- end -}} <p class="single-byline">
{{- end -}} {{- with $author -}}
{{- if and $author .Date -}}, {{ end -}} {{- if $authorPage -}}<a class="byline-author" href="{{ $authorPage.RelPermalink }}">{{ . }}</a>
{{- if .Date -}}<time class="byline-date" datetime="{{ .Date.Format "2006-01-02" }}">{{ .Date.Format "02.01.2006" }}</time>{{- end -}} {{- else -}}<span class="byline-author">{{ . }}</span>{{- end -}}
</p> {{- end -}}
{{ end }} {{- if and $author .Date -}}, {{ end -}}
{{- if .Date -}}<time class="byline-date" datetime="{{ .Date.Format "2006-01-02" }}">{{ .Date.Format "02.01.2006" }}</time>{{- end -}}
</p>
{{ end }}
{{/* Reading time + last-modified — Republik-style, directly below byline */}} {{/* Reading time + last-modified — Republik-style, directly below byline */}}
{{ $showReadingTime := .Params.showreadingtime | default site.Params.showreadingtime | default true }} {{ $showReadingTime := .Params.showreadingtime | default site.Params.showreadingtime | default true }}
{{ $showLastMod := .Params.showlastmod | default site.Params.showlastmod | default false }} {{ $showLastMod := .Params.showlastmod | default site.Params.showlastmod | default false }}
{{ $hasLastmod := and $showLastMod .Lastmod (ne (.Lastmod.Format "2006-01-02") (.Date.Format "2006-01-02")) }} {{ $hasLastmod := and $showLastMod .Lastmod (ne (.Lastmod.Format "2006-01-02") (.Date.Format "2006-01-02")) }}
{{ if or (and $showReadingTime .ReadingTime) $hasLastmod }} {{ if or (and $showReadingTime .ReadingTime) $hasLastmod }}
<p class="single-meta"> <p class="single-meta">
{{ if and $showReadingTime .ReadingTime }}<span class="reading-time">{{ .ReadingTime }} min Lesezeit</span>{{ end }} {{ if and $showReadingTime .ReadingTime }}<span class="reading-time">{{ .ReadingTime }} min Lesezeit</span>{{ end }}
{{ if $hasLastmod }}{{ if and $showReadingTime .ReadingTime }} · {{ end }}<span class="lastmod">Aktualisiert am {{ .Lastmod.Format "02.01.2006" }}</span>{{ end }} {{ if $hasLastmod }}{{ if and $showReadingTime .ReadingTime }} · {{ end }}<span class="lastmod">Aktualisiert am {{ .Lastmod.Format "02.01.2006" }}</span>{{ end }}
</p> </p>
{{ end }}
{{ end }} {{ end }}
{{/* Versions-Marke: macht bewusst, dass dies eine bestimmte Fassung ist, {{/* Versions-Marke: macht bewusst, dass dies eine bestimmte Fassung ist,
-2
View File
@@ -7,9 +7,7 @@
{{ with .GitInfo }} {{ with .GitInfo }}
{{ with $repo }} {{ with $repo }}
<a class="prov-version" href="{{ . }}/commit/{{ $.GitInfo.Hash }}" title="Diese Version als Commit ansehen">Version {{ $.GitInfo.AbbreviatedHash }}</a> <a class="prov-version" href="{{ . }}/commit/{{ $.GitInfo.Hash }}" title="Diese Version als Commit ansehen">Version {{ $.GitInfo.AbbreviatedHash }}</a>
<span class="prov-sep">·</span>
<a class="prov-history" href="{{ . }}/commits/branch/main/content/{{ $.File.Path }}">Verlauf</a> <a class="prov-history" href="{{ . }}/commits/branch/main/content/{{ $.File.Path }}">Verlauf</a>
<span class="prov-sep">·</span>
{{ end }} {{ end }}
{{ end }} {{ end }}
<button type="button" class="prov-cite" aria-expanded="false" <button type="button" class="prov-cite" aria-expanded="false"