diff options
author | John Hollowell <johnahollowell@gmail.com> | 2021-01-30 01:59:51 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-30 01:59:51 +0300 |
commit | 9e3a390cd4ca2ed78ad08de1f22f406d0cfb342c (patch) | |
tree | fa17664dea92ca302f117a97a46ce2956a7b75a6 | |
parent | 438cc9561c5ed0d60075f6a52f5f2a122a70c66a (diff) |
Add year Replacement in RSS copyright
Added the same replacement that happens in site-footer.html for the copyright to the RSS feed template
-rw-r--r-- | layouts/_default/rss.xml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/layouts/_default/rss.xml b/layouts/_default/rss.xml index 18561d2..a4807db 100644 --- a/layouts/_default/rss.xml +++ b/layouts/_default/rss.xml @@ -13,7 +13,7 @@ <language>{{.}}</language>{{end}}{{ with $.Site.Params.email }} <managingEditor>{{.}}{{ with $.Site.Params.myname }} ({{.}}){{end}}</managingEditor>{{end}}{{ with .Site.Params.email }} <webMaster>{{.}}{{ with $.Site.Params.myname }} ({{.}}){{end}}</webMaster>{{end}}{{ with .Site.Copyright }} - <copyright>{{.}}</copyright>{{end}}{{ if not .Date.IsZero }} + <copyright>{{ replace . "{year}" now.Year | markdownify}}</copyright>{{end}}{{ if not .Date.IsZero }} <lastBuildDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</lastBuildDate>{{ end }}{{ with .Site.Params.updatePeriod }} <sy:updatePeriod>{{.}}</sy:updatePeriod>{{end}}{{ with .Site.Params.updateFrequency }} <sy:updateFrequency>{{.}}</sy:updateFrequency>{{end}} @@ -110,4 +110,4 @@ {{ end }} </channel> -</rss>
\ No newline at end of file +</rss> |