From b4782f078c0b2f5e33ad752f77cf28b9e31aa507 Mon Sep 17 00:00:00 2001 From: Hyperling Date: Fri, 2 Jan 2026 19:39:36 -0700 Subject: [PATCH] Implement the Started attribute. Use icons more consistently from the static resources. --- layouts/posts/single.html | 34 +++++++++++++++++++++------------- 1 file changed, 21 insertions(+), 13 deletions(-) diff --git a/layouts/posts/single.html b/layouts/posts/single.html index a383c54..39a163b 100644 --- a/layouts/posts/single.html +++ b/layouts/posts/single.html @@ -83,23 +83,31 @@ {{ partial "categories.html" . }}

- - - - - - - + WordCount: {{ i18n "wordCount" .Page.WordCount }}

+ {{ if .Params.Started }}

- - - - - - + Started: + {{ if not (eq .Params.Started .Date )}} + {{ if .Site.Params.dateformNumTime }} + {{ i18n "dateStarted" }}{{ dateFormat .Site.Params.dateformNumTime .Params.Started }} + {{ else }} + {{ i18n "dateStarted" }}{{ dateFormat "2006-01-02 15:04" .Params.Started }} + {{ end }} + {{ end }} +

+ {{ end }} + +

+ Started: {{ if .Site.Params.dateformNumTime }} {{ dateFormat .Site.Params.dateformNumTime .Date.Local }} {{ else }}