Skip to content

Commit 7a0d21e

Browse files
authored
fix(archetypes): add timezone to date (#310)
Closes #254 gohugoio/hugo#12940
1 parent 6cef8f6 commit 7a0d21e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

archetypes/default.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
date: {{ now.Format "2006-01-02" }}
2+
date: {{ .Date }}
33
# image: ""
44
lastmod: {{ now.Format "2006-01-02" }}
55
showTableOfContents: false

archetypes/posts.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
date: {{ now.Format "2006-01-02" }}
2+
date: {{ .Date }}
33
# description: ""
44
# image: ""
55
lastmod: {{ now.Format "2006-01-02" }}

0 commit comments

Comments
 (0)