diff --git a/layouts/section.html b/layouts/section.html index 748f2f5..bfc5202 100644 --- a/layouts/section.html +++ b/layouts/section.html @@ -1,10 +1,13 @@ {{ define "main" }} -

{{ .Title }}

- {{ .Content }} - {{ range .Pages }} -
-

{{ .LinkTitle }}

- {{ .Summary }} -
- {{ end }} +

{{ .Title }}

+{{ .Content }} +{{ range .Pages }} +{{ $dateMachineP := .PublishDate | time.Format "2006-01-02T15:04:05-07:00" }} +{{ $dateHumanP := .PublishDate | time.Format ":date_long" }} +
+

{{ .LinkTitle }}

+

+ {{ .Summary }} +
+{{ end }} {{ end }} diff --git a/layouts/term.html b/layouts/term.html index c2e7875..bfc5202 100644 --- a/layouts/term.html +++ b/layouts/term.html @@ -1,7 +1,13 @@ {{ define "main" }} -

{{ .Title }}

- {{ .Content }} - {{ range .Pages }} -

{{ .LinkTitle }}

- {{ end }} +

{{ .Title }}

+{{ .Content }} +{{ range .Pages }} +{{ $dateMachineP := .PublishDate | time.Format "2006-01-02T15:04:05-07:00" }} +{{ $dateHumanP := .PublishDate | time.Format ":date_long" }} +
+

{{ .LinkTitle }}

+

+ {{ .Summary }} +
+{{ end }} {{ end }}