diff options
author | RheingoldRiver <18037011+RheingoldRiver@users.noreply.github.com> | 2021-04-04 17:32:55 +0300 |
---|---|---|
committer | RheingoldRiver <18037011+RheingoldRiver@users.noreply.github.com> | 2021-04-04 17:32:55 +0300 |
commit | 0037b4e19bcbf4961a15d2a94f88ae75acc23894 (patch) | |
tree | e67c111dc96ada7079a29339d6e78f5e1485b4de | |
parent | 438cc9561c5ed0d60075f6a52f5f2a122a70c66a (diff) |
Support an rssDescription param
-rw-r--r-- | layouts/_default/rss.xml | 2 |
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 }} |