Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/zzossig/hugo-theme-zzo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzzossig <52706977+zzossig@users.noreply.github.com>2021-04-24 19:43:56 +0300
committerGitHub <noreply@github.com>2021-04-24 19:43:56 +0300
commite43a7c1aeca5d0dccb35ee394d127e89d08bc1bc (patch)
treee3db9d3bb4366d7672a70bab205b53ffe799baec
parenteb0ee02e6d412cb1ce8967595345db97d1aa3528 (diff)
parent9e3a390cd4ca2ed78ad08de1f22f406d0cfb342c (diff)
Merge pull request #386 from jhollowe/patch-1
Add year Replacement in RSS copyright
-rw-r--r--layouts/_default/rss.xml4
1 files changed, 2 insertions, 2 deletions
diff --git a/layouts/_default/rss.xml b/layouts/_default/rss.xml
index 8f5e168..385a1f6 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>