summaryrefslogtreecommitdiffstats
path: root/layouts/_default/home.feed.xml
diff options
context:
space:
mode:
authorSerghei Iakovlev <egrep@protonmail.ch>2022-05-18 23:38:01 +0200
committerSerghei Iakovlev <egrep@protonmail.ch>2022-05-18 23:38:01 +0200
commit106f64c726c8b01f879f7edc9491b416acb2a14b (patch)
treeb45df3e5e2d14a38ba163c52264758af30d309cc /layouts/_default/home.feed.xml
parent474a04eb4d17eff9832ef01656bc70874852715f (diff)
downloadgohugo-theme-ed-106f64c726c8b01f879f7edc9491b416acb2a14b.tar.gz
Check for: if ne .Date .Lastmod
Diffstat (limited to 'layouts/_default/home.feed.xml')
-rw-r--r--layouts/_default/home.feed.xml4
1 files changed, 2 insertions, 2 deletions
diff --git a/layouts/_default/home.feed.xml b/layouts/_default/home.feed.xml
index 912070d..714bc07 100644
--- a/layouts/_default/home.feed.xml
+++ b/layouts/_default/home.feed.xml
@@ -34,8 +34,8 @@
{{- range first $feedsize (where site.RegularPages.ByDate.Reverse "Type" "in" site.Params.mainSections) }}
<item>
{{ printf `<title type="html"><![CDATA[%s]]></title>` .Title | safeHTML }}
- <link>{{ .Permalink | absURL }}</link>{{ $date := .PublishDate.UTC }}
- <pubDate>{{ $date.Format site.Params.dateFormatRFC822Z | html }}</pubDate>
+ <link>{{ .Permalink | absURL }}</link>
+ <pubDate>{{ .PublishDate.UTC.Format site.Params.dateFormatRFC822Z | html }}</pubDate>
<category>{{ .Section }}</category>
{{ range (.GetTerms "tags") }}<category>{{ .LinkTitle }}</category>{{end}}
<guid isPermaLink="false">{{ md5 .Permalink }}</guid>