From fc373ffcd99e8e8a9c14673e19f87b38482755ab Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Sun, 28 Dec 2025 18:14:23 +0100 Subject: [PATCH] Post-Metadata hartkodiert vorgegeben und getuned --- layouts/_partials/post_meta.html | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/layouts/_partials/post_meta.html b/layouts/_partials/post_meta.html index b0aa0087..e49bfb29 100644 --- a/layouts/_partials/post_meta.html +++ b/layouts/_partials/post_meta.html @@ -1,17 +1,11 @@ {{- $scratch := newScratch }} -{{- if (.Param "ShowWordCount") -}} +{{- $scratch.Add "meta" (slice (printf "Posted on %s" (.Date) (.Date | time.Format (default ":date_long" site.Params.DateFormat)))) }} + {{- $scratch.Add "meta" (slice (printf "%s" (i18n "words" .WordCount | default (printf "%d words" .WordCount)))) }} -{{- end }} -{{- if (.Param "ShowReadingTime") -}} {{- $scratch.Add "meta" (slice (printf "%s" (i18n "read_time" .ReadingTime | default (printf "%d min" .ReadingTime)))) }} -{{- end }} - -{{- if not .Date.IsZero -}} -{{- $scratch.Add "meta" (slice (printf "%s" (.Date) (.Date | time.Format (default ":date_long" site.Params.DateFormat)))) }} -{{- end }} {{- with ($scratch.Get "meta") }} -{{- delimit . " Â· " | safeHTML -}} +

{{- delimit . " Â· " | safeHTML -}}

{{- end -}} -- 2.39.5