From ecd0d4f8f47e3827018ed0edab494bc83e09feeb Mon Sep 17 00:00:00 2001 From: Aditya Telange <21258296+adityatelange@users.noreply.github.com> Date: Sun, 3 May 2026 13:01:06 +0530 Subject: [PATCH] style(post_meta): adjust indentation for better readability --- layouts/_partials/post_meta.html | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/layouts/_partials/post_meta.html b/layouts/_partials/post_meta.html index ae996bad..c7c2635d 100644 --- a/layouts/_partials/post_meta.html +++ b/layouts/_partials/post_meta.html @@ -1,23 +1,25 @@ {{- $scratch := newScratch }} {{- if not .Date.IsZero -}} -{{- $scratch.Add "meta" (slice (printf "%s" (.Date) (.Date | time.Format (default ":date_long" site.Params.DateFormat)))) }} + {{- $scratch.Add "meta" (slice (printf "%s" (.Date) (.Date | time.Format (default ":date_long" site.Params.DateFormat)))) }} {{- end }} {{- if (.Param "ShowReadingTime") -}} -{{- $scratch.Add "meta" (slice (printf "%s" (i18n "read_time" .ReadingTime | default (printf "%d min" .ReadingTime)))) }} + {{- $scratch.Add "meta" (slice (printf "%s" (i18n "read_time" .ReadingTime | default (printf "%d min" .ReadingTime)))) }} {{- end }} {{- if (.Param "ShowWordCount") -}} -{{- $scratch.Add "meta" (slice (printf "%s" (i18n "words" .WordCount | default (printf "%d words" .WordCount)))) }} + {{- $scratch.Add "meta" (slice (printf "%s" (i18n "words" .WordCount | default (printf "%d words" .WordCount)))) }} {{- end }} {{- if not (.Param "hideAuthor") -}} -{{- with (partial "author.html" .) }} -{{- $scratch.Add "meta" (slice (printf "%s" .)) }} -{{- end }} + {{- with (partial "author.html" .) }} + {{- $scratch.Add "meta" (slice (printf "%s" .)) }} + {{- end }} {{- end }} +{{/* Combine all meta information into a single string with separators and render it as HTML.*/}} + {{- with ($scratch.Get "meta") }} -{{- delimit . " · " | safeHTML -}} + {{- delimit . " · " | safeHTML -}} {{- end -}}