From 2c5d44ee0b42d1c91a94efaa3745ee4d582d19d6 Mon Sep 17 00:00:00 2001 From: irl Date: Mon, 13 Apr 2026 21:08:06 +0100 Subject: [PATCH] feat: nice date on posts section --- layouts/posts/section.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/layouts/posts/section.html b/layouts/posts/section.html index 91f6100..9acad97 100644 --- a/layouts/posts/section.html +++ b/layouts/posts/section.html @@ -2,9 +2,11 @@

{{ .Title }}

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

{{ .LinkTitle }}

-

{{ .PublishDate }}

+

{{ .Summary }}
{{ end }}