From a59c2dac2608ee603dcad0732639f4ed066ed18e Mon Sep 17 00:00:00 2001 From: Alex Tavarez Date: Sun, 1 Feb 2026 17:46:53 -0500 Subject: [PATCH] added more fields to be rendered for post --- themes/sukaato/layouts/_default/single.html | 45 +++++++++++++++++---- 1 file changed, 37 insertions(+), 8 deletions(-) diff --git a/themes/sukaato/layouts/_default/single.html b/themes/sukaato/layouts/_default/single.html index 7e286c8..32c6ea8 100644 --- a/themes/sukaato/layouts/_default/single.html +++ b/themes/sukaato/layouts/_default/single.html @@ -1,10 +1,39 @@ {{ define "main" }} -

{{ .Title }}

- - {{ $dateMachine := .Date | time.Format "2006-01-02T15:04:05-07:00" }} - {{ $dateHuman := .Date | time.Format ":date_long" }} - - - {{ .Content }} - {{ partial "terms.html" (dict "taxonomy" "tags" "page" .) }} +
+

{{ .Title }}

+
+ {{ if ne .PublishDate nil }} + {{ $dateMachine := .PublishDate | time.Format "2006-01-02T15:04:05-07:00" }} + {{ $dateHuman := .PublishDate | time.Format "2 Jan 2006" }} + + {{ else }} + {{ $dateMachine := .Date | time.Format "2006-01-02T15:04:05-07:00" }} + {{ $dateHuman := .Date | time.Format "2 Jan 2006" }} + + {{ end }} + {{ with .Params.author }} +

Written by {{ . }}

+ {{ end }} + {{ with .Params.editor }} + {{ if ne .Params.editor .Params.author }} +

Edited by {{ .Params.editor }}

+ {{ end }} + {{ end }} + {{ with .Params.translator }} +

Translated by {{ . }}

+ {{ end }} +
+
+ {{ .Content }} +
+ + {{ partial "terms.html" (dict "taxonomy" "tags" "page" .) }} +
{{ end }}