Fixing date formatting on index page. - gopherhole - My website source code.
(DIR) Log
(DIR) Files
(DIR) Refs
---
(DIR) commit 8c16ddbf89ee6580c014508c92079b5a863a58d0
(DIR) parent 190a07541caa88695064ca683b9fa926322ec423
(HTM) Author: Jay Scott <me@jay.scot>
Date: Sun, 11 Sep 2022 16:59:59 +0100
Fixing date formatting on index page.
Diffstat:
M templates/_default/index.gmi | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
(DIR) diff --git a/templates/_default/index.gmi b/templates/_default/index.gmi
@@ -8,7 +8,7 @@
# RANTS
{{ with site.Root.GetPage "/rants" }}
{{ range .Pages }}
-=> {{ .Path }} {{ if not .Date.IsZero -}}{{ .Date.Format "2006-01" }}{{end}} : {{ .Title }} {{ end }}
+=> {{ .Path }} {{ if not .Date.IsZero -}}{{ .Date.Format "2006-01-02" }}{{end}} : {{ .Title }} {{ end }}
{{ end }}
# INFO