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);
|
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 {
|
||||||
|
|||||||
@@ -15,6 +15,9 @@
|
|||||||
{{ with .Params.summary }}
|
{{ with .Params.summary }}
|
||||||
<p class="single-summary">{{ . }}</p>
|
<p class="single-summary">{{ . }}</p>
|
||||||
{{ 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 }}
|
{{ $author := .Params.author | default site.Params.author.name }}
|
||||||
{{ $aslug := urlize $author }}
|
{{ $aslug := urlize $author }}
|
||||||
{{ if not .Params.author }}{{ with index site.Data.authors site.Params.author.email }}{{ with .slug }}{{ $aslug = . }}{{ end }}{{ end }}{{ end }}
|
{{ 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 }}
|
{{ 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,
|
||||||
und öffnet den Verlauf (alte Fassungen direkt auf der Seite). */}}
|
und öffnet den Verlauf (alte Fassungen direkt auf der Seite). */}}
|
||||||
|
|||||||
@@ -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"
|
||||||
|
|||||||
Reference in New Issue
Block a user