Skip to content
/ hugo Public
forked from gohugoio/hugo

Commit

Permalink
tpl/tplimpl: Fall back from publish date to date
Browse files Browse the repository at this point in the history
  • Loading branch information
jmooring committed Jun 28, 2024
1 parent 932ab4c commit 3e03976
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tpl/tplimpl/embedded/templates/_default/rss.xml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
<item>
<title>{{ .Title }}</title>
<link>{{ .Permalink }}</link>
<pubDate>{{ .PublishDate.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
<pubDate>{{ (or .PublishDate .Date).Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
{{- with $authorEmail }}<author>{{ . }}{{ with $authorName }} ({{ . }}){{ end }}</author>{{ end }}
<guid>{{ .Permalink }}</guid>
<description>{{ .Summary | transform.XMLEscape | safeHTML }}</description>
Expand Down

0 comments on commit 3e03976

Please sign in to comment.