From 8e2f15b571eb3ce1ae7c635ffd3e8ebee0facfab Mon Sep 17 00:00:00 2001 From: PCloud Date: Mon, 14 Oct 2024 11:32:07 +0100 Subject: [PATCH] fix(json feed): fix Lastmod typo Close #1366 --- layouts/index.feed | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/index.feed b/layouts/index.feed index 689c8f89c..a342c5890 100644 --- a/layouts/index.feed +++ b/layouts/index.feed @@ -23,9 +23,9 @@ "title" : {{ .Title | jsonify }}, "date_published" : "{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}", {{ if .Lastmod -}} - "date_modified" : "{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}", + "date_modified" : "{{ .Lastmod.Format "2006-01-02T15:04:05Z07:00" }}", {{ else -}} - "date_modified" : "{{ .LastMod.Format "2006-01-02T15:04:05Z07:00" }}", + "date_modified" : "{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}", {{ end -}} "id" : "{{ .Permalink }}", "url" : "{{ .Permalink }}",