From 96eaac9c58c15b8511169f26e573f360ee1714c3 Mon Sep 17 00:00:00 2001 From: Richard Qin Date: Fri, 9 Oct 2026 02:41:20 +0800 Subject: fixed hugo date template Signed-off-by: Richard Qin --- archetypes/journal.md | 4 ++-- archetypes/note.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'archetypes') diff --git a/archetypes/journal.md b/archetypes/journal.md index dfcc43a..47f0e34 100644 --- a/archetypes/journal.md +++ b/archetypes/journal.md @@ -2,7 +2,7 @@ title: "{{ replace .File.ContentBaseName "-" " " | title }}" slug: "{{ .File.ContentBaseName }}" lang: en -created: {{ .Date.Format "2006-01-02" }} -updated: {{ .Date.Format "2006-01-02" }} +created: {{ time.Format "2006-01-02" .Date }} +updated: {{ time.Format "2006-01-02" .Date }} license: CC-BY-SA-4.0 --- diff --git a/archetypes/note.md b/archetypes/note.md index dfcc43a..47f0e34 100644 --- a/archetypes/note.md +++ b/archetypes/note.md @@ -2,7 +2,7 @@ title: "{{ replace .File.ContentBaseName "-" " " | title }}" slug: "{{ .File.ContentBaseName }}" lang: en -created: {{ .Date.Format "2006-01-02" }} -updated: {{ .Date.Format "2006-01-02" }} +created: {{ time.Format "2006-01-02" .Date }} +updated: {{ time.Format "2006-01-02" .Date }} license: CC-BY-SA-4.0 --- -- cgit v1.2.3