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 }} -

- {{- with $author -}} - {{- if $authorPage -}}{{ . }} - {{- else -}}{{ . }}{{- end -}} - {{- end -}} - {{- if and $author .Date -}}, {{ end -}} - {{- if .Date -}}{{- end -}} -

- {{ 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 }} +

+ {{- with $author -}} + {{- if $authorPage -}}{{ . }} + {{- else -}}{{ . }}{{- end -}} + {{- end -}} + {{- if and $author .Date -}}, {{ end -}} + {{- if .Date -}}{{- end -}} +

+ {{ 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 }}