From 07fdb6e72670059e9cd9c4c5fc9e7b786d1a37cf Mon Sep 17 00:00:00 2001 From: karim Date: Sun, 31 May 2026 13:14:52 +0200 Subject: [PATCH] =?UTF-8?q?Byline:=20kein=20Unterstrich;=20Link=20f=C3=BCr?= =?UTF-8?q?=20Standard-Autor=20robust=20via=20E-Mail=20aufl=C3=B6sen?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - .byline-author/.journal-author: border-bottom entfernt; Stil nur noch auf echten Links (a.…), dezenter Hover statt Unterstrich - Standard-Autor (ohne .Params.author) wird über site.Params.author.email in data/authors aufgelöst → Link greift unabhängig vom Namen, sobald Profil gespeichert ist; sonst Fallback auf urlize(Name) Co-Authored-By: Claude Opus 4.8 --- assets/css/custom.css | 5 ++--- layouts/_default/single.html | 4 +++- layouts/index.html | 4 +++- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/assets/css/custom.css b/assets/css/custom.css index 5835b10..7eaf292 100644 --- a/assets/css/custom.css +++ b/assets/css/custom.css @@ -421,9 +421,8 @@ a:hover { line-height: 1.7; } .author-bio p { margin: 0 0 1em; } -.byline-author { color: inherit; text-decoration: none; border-bottom: 1px solid currentColor; } -.byline-author:hover { color: var(--accent); } -.journal-author { color: inherit; } +a.byline-author, a.journal-author { color: inherit; text-decoration: none; } +a.byline-author:hover, a.journal-author:hover { color: var(--accent); } /* ------------------------------------------------------------------------ Journal entries — three Republik-style layouts (set in front matter diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 73ccaea..6848c0e 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -16,7 +16,9 @@

{{ . }}

{{ end }} {{ $author := .Params.author | default site.Params.author.name }} - {{ $authorPage := cond (ne $author "") (site.GetPage (printf "/authors/%s" (urlize $author))) false }} + {{ $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 }}