diff --git a/layouts/_default/rss.xml b/layouts/_default/rss.xml index f1f1c2a..7fc2460 100644 --- a/layouts/_default/rss.xml +++ b/layouts/_default/rss.xml @@ -29,7 +29,11 @@ {{ .Title }} {{ .Permalink }} + {{ if (and (isset .Params "lastmod") (gt (dateFormat "2006-01-02" (.Lastmod)) (dateFormat "2006-01-02" (.PublishDate)))) }} + {{ .Lastmod.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }} + {{ else }} {{ .PublishDate.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }} + {{ end }} {{ with .Site.Params.author.email }}{{.}}{{ with $.Site.Params.author.name }} ({{.}}){{end}}{{end}} {{ .Permalink }} {{ .Content | html }}