From 22c9b9ff61314ce2b1ff215f75f002988f682e1a Mon Sep 17 00:00:00 2001 From: karim Date: Tue, 2 Jun 2026 01:42:28 +0200 Subject: [PATCH] =?UTF-8?q?ui:=20Provenance=20als=20Pills=20+=20Byline=20n?= =?UTF-8?q?ur=20bei=20Library-Beitr=C3=A4gen?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 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 --- assets/css/custom.css | 18 ++++++----- layouts/_default/single.html | 50 +++++++++++++++++-------------- layouts/_partials/provenance.html | 2 -- 3 files changed, 38 insertions(+), 32 deletions(-) diff --git a/assets/css/custom.css b/assets/css/custom.css index e566827..01c8e47 100644 --- a/assets/css/custom.css +++ b/assets/css/custom.css @@ -1484,18 +1484,22 @@ img:hover { filter: grayscale(0%); } font-size: var(--font-size-small); color: var(--color-text-muted); } -.provenance a { color: var(--color-text-muted); text-decoration: none; } -.provenance a:hover { color: var(--accent); } -.provenance .prov-sep { opacity: 0.5; } +/* Version / Verlauf / Zitieren als dezente Outline-Pills (wie die Versions-Marke). */ +.provenance a, .prov-cite { - font: inherit; + display: inline-block; + font-family: var(--font-family-mono); + font-size: var(--font-size-small); color: var(--color-text-muted); background: none; - border: none; - padding: 0; + border: 1px solid var(--color-border); + border-radius: 999px; + padding: 0.12em 0.7em; + text-decoration: none; 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. */ .prov-citation { diff --git a/layouts/_default/single.html b/layouts/_default/single.html index a1eb921..65b3ad2 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -15,30 +15,34 @@ {{ 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 }} + {{/* Byline + Meta nur bei Library-Beiträgen — Seiten wie Manifest, + Kontakt, Spenden brauchen weder Autor noch „Aktualisiert am". */}} + {{ if eq .Section "library" }} + {{ $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 }} -

+ {{/* 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 }} {{ end }} {{/* Versions-Marke: macht bewusst, dass dies eine bestimmte Fassung ist, diff --git a/layouts/_partials/provenance.html b/layouts/_partials/provenance.html index 14f6c0e..e6da4fe 100644 --- a/layouts/_partials/provenance.html +++ b/layouts/_partials/provenance.html @@ -7,9 +7,7 @@ {{ with .GitInfo }} {{ with $repo }} Version {{ $.GitInfo.AbbreviatedHash }} - · Verlauf - · {{ end }} {{ end }}