summaryrefslogtreecommitdiffstats
path: root/layouts/partials/post-meta/date.html
diff options
context:
space:
mode:
authorSerghei Iakovlev <egrep@protonmail.ch>2022-06-03 12:51:52 +0200
committerSerghei Iakovlev <egrep@protonmail.ch>2022-06-03 12:52:23 +0200
commit6c6b1bd1035ae68a18bd83faf7ff1297ead60e8c (patch)
tree0a9b6c3388af549cd7d59b6e680837d31d9dc3b2 /layouts/partials/post-meta/date.html
parent1283f3d31243d1ac63ce718c4039ba6b85f5d721 (diff)
downloadgohugo-theme-ed-6c6b1bd1035ae68a18bd83faf7ff1297ead60e8c.tar.gz
Do not allow modification of date formats that are required by spec
Diffstat (limited to 'layouts/partials/post-meta/date.html')
-rw-r--r--layouts/partials/post-meta/date.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/layouts/partials/post-meta/date.html b/layouts/partials/post-meta/date.html
index e5626cf..42747f2 100644
--- a/layouts/partials/post-meta/date.html
+++ b/layouts/partials/post-meta/date.html
@@ -1,5 +1,5 @@
-{{ $date := .Date | time.Format (site.Params.dateformat | default "January 02, 2006") }}
-{{ $lastmod := .Lastmod | time.Format (site.Params.dateformat | default "January 02, 2006") }}
+{{ $date := .Date | time.Format (site.Params.dateFormat | default "January 02, 2006") }}
+{{ $lastmod := .Lastmod | time.Format (site.Params.dateFormat | default "January 02, 2006") }}
<time datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}">
{{ $date }}