From: Kai Moritz Date: Sun, 28 Dec 2025 17:14:23 +0000 (+0100) Subject: Post-Metadata hartkodiert vorgegeben und getuned X-Git-Url: https://juplo.de/gitweb/?a=commitdiff_plain;h=fc373ffcd99e8e8a9c14673e19f87b38482755ab;p=website Post-Metadata hartkodiert vorgegeben und getuned --- 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 -}}