From 46cefbb27e2b0954c3a8c695354ede751847c4e7 Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Wed, 29 Apr 2026 11:44:14 +0200 Subject: feat: consolidate article metadata into sidebar widget MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Remove publication date, lastmod, reading time, and type badge from article header. Header now shows title + type-colored accent lines only. Move publication and lastmod dates to sidebar stats widget, between author and word count. Reading time and type badge already in sidebar — no duplication needed. Removes orphaned bottom border and padding from header outer div. --- layouts/partials/article-header.html | 44 +----------------------------------- layouts/partials/sidebar.html | 20 ++++++++++++++++ 2 files changed, 21 insertions(+), 43 deletions(-) diff --git a/layouts/partials/article-header.html b/layouts/partials/article-header.html index 55f6af1..abc7689 100644 --- a/layouts/partials/article-header.html +++ b/layouts/partials/article-header.html @@ -3,7 +3,7 @@ {{ $typeData := index $typeConfig $articleType }} {{ $hasType := .Params.type }} -
+
@@ -26,46 +26,4 @@ {{ .Title }}
- - -
- - {{ if .PublishDate }} -
- - -
- {{ end }} - - - {{ if .Lastmod }} - {{ $lastmodDate := .Lastmod.Format "2006-01-02" }} - {{ $pubDate := .PublishDate.Format "2006-01-02" }} - {{ if ne $lastmodDate $pubDate }} -
- - -
- {{ end }} - {{ end }} - - - {{ if .Site.Params.readingTime }} -
- - {{ .ReadingTime }} {{ i18n "min" }} {{ i18n "readingTime" }} -
- {{ end }} - - - {{ if and $typeData $hasType }} - - {{ i18n $articleType }} - - {{ end }} -
diff --git a/layouts/partials/sidebar.html b/layouts/partials/sidebar.html index 483e90b..5562215 100644 --- a/layouts/partials/sidebar.html +++ b/layouts/partials/sidebar.html @@ -17,6 +17,26 @@ {{ .Site.Params.author }} + {{ if .PublishDate }} +
  • + + +
  • + {{ end }} + {{ if .Lastmod }} + {{ $lastmodDate := .Lastmod.Format "2006-01-02" }} + {{ $pubDate := .PublishDate.Format "2006-01-02" }} + {{ if ne $lastmodDate $pubDate }} +
  • + + +
  • + {{ end }} + {{ end }}
  • {{ .WordCount }} {{ i18n "words" }} -- cgit v1.2.3