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:
+11
-7
@@ -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 {
|
||||
|
||||
@@ -15,6 +15,9 @@
|
||||
{{ with .Params.summary }}
|
||||
<p class="single-summary">{{ . }}</p>
|
||||
{{ 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 }}
|
||||
@@ -40,6 +43,7 @@
|
||||
{{ if $hasLastmod }}{{ if and $showReadingTime .ReadingTime }} · {{ end }}<span class="lastmod">Aktualisiert am {{ .Lastmod.Format "02.01.2006" }}</span>{{ end }}
|
||||
</p>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
{{/* Versions-Marke: macht bewusst, dass dies eine bestimmte Fassung ist,
|
||||
und öffnet den Verlauf (alte Fassungen direkt auf der Seite). */}}
|
||||
|
||||
@@ -7,9 +7,7 @@
|
||||
{{ with .GitInfo }}
|
||||
{{ with $repo }}
|
||||
<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>
|
||||
<span class="prov-sep">·</span>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
<button type="button" class="prov-cite" aria-expanded="false"
|
||||
|
||||
Reference in New Issue
Block a user