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 }}