diff options
author | Shaform <shaform@gmail.com> | 2019-01-16 19:22:30 +0300 |
---|---|---|
committer | Shaform <shaform@gmail.com> | 2019-01-16 19:22:30 +0300 |
commit | c8d49d763949fb38f19be9391a67ae1a22f0367a (patch) | |
tree | 08d8813771c47f7ec523fca861fd870fd66c36e2 | |
parent | 4b3f6c322b3275568c902843e68f81df7ddb7ecb (diff) |
support webfeed
-rw-r--r-- | layouts/rss.xml | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/layouts/rss.xml b/layouts/rss.xml index 759d9b9..31ffbce 100644 --- a/layouts/rss.xml +++ b/layouts/rss.xml @@ -1,8 +1,11 @@ -<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> +<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:webfeeds="http://webfeeds.org/rss/1.0"> <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> + {{- with .Site.Params.customFavicon -}} + <webfeeds:icon>{{ . | absURL }}</webfeeds:icon> + {{- end }} <generator>Hugo -- gohugo.io</generator>{{ with .Site.LanguageCode }} <language>{{.}}</language>{{end}}{{ with .Site.Author.email }} <managingEditor>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</managingEditor>{{end}}{{ with .Site.Author.email }} @@ -27,4 +30,4 @@ </item> {{ end }} </channel> -</rss>
\ No newline at end of file +</rss> |