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:42:26 +0300
committerGitHub <noreply@github.com>2021-04-24 19:42:26 +0300
commit067a7522d5af6015504f0f0271c7ab23c982768d (patch)
treebfbb74671f1a271d9f5a4a68f1174627c07e04b0
parent6258d4dde546706fcdb79f7d7060ee75a02a06ad (diff)
parent0037b4e19bcbf4961a15d2a94f88ae75acc23894 (diff)
Merge pull request #406 from RheingoldRiver/rss-desc
Support an rssDescription param
-rw-r--r--layouts/_default/rss.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/_default/rss.xml b/layouts/_default/rss.xml
index 18561d2..8f5e168 100644
--- a/layouts/_default/rss.xml
+++ b/layouts/_default/rss.xml
@@ -8,7 +8,7 @@
<channel>
<title>{{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} on {{ end }}{{ .Site.Title }}{{ end }}</title>
<link>{{ .Permalink }}</link>
- <description>Recent content {{ if ne .Title .Site.Title }}{{ with .Title }}in {{.}} {{ end }}{{ end }}on {{ .Site.Title }}</description>
+ <description>{{ if .Site.Params.rssDescription }}{{ .Site.Params.rssDescription }}{{ else }}Recent content {{ if ne .Title .Site.Title }}{{ with .Title }}in {{.}} {{ end }}{{ end }}on {{ .Site.Title }}{{ end }}</description>
<generator>Hugo -- gohugo.io</generator>{{ with .Site.Language.Lang }}
<language>{{.}}</language>{{end}}{{ with $.Site.Params.email }}
<managingEditor>{{.}}{{ with $.Site.Params.myname }} ({{.}}){{end}}</managingEditor>{{end}}{{ with .Site.Params.email }}