LoveIt/layouts/rss.xml

37 lines
1.7 KiB
XML
Raw Normal View History

2019-02-03 12:30:44 +01:00
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
2019-08-02 10:16:59 +02:00
<channel>
2019-08-11 19:36:19 +02:00
<title>{{ with .Title }}{{ . }} on {{ end }}{{ .Site.Title }}</title>
2019-08-02 10:16:59 +02:00
<link>{{ .Permalink }}</link>
2019-08-11 19:36:19 +02:00
<description>Recent content {{ with .Title }}in {{ . }} {{ end }}on {{ .Site.Title }}</description>
<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 }}
<webMaster>{{ . }}{{ with .Site.Author.name }} ({{ . }}){{ end }}</webMaster>
{{ end }}
{{ with .Site.Copyright }}
<copyright>{{ . }}</copyright>
{{ end }}
{{ if not .Date.IsZero }}
<lastBuildDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</lastBuildDate>
{{ end }}
2019-08-02 10:16:59 +02:00
<atom:link href="{{.Permalink}}" rel="self" type="application/rss+xml" />
{{ range first 15 (where .Data.Pages "Type" "!=" "home") }}
<item>
<title>{{ .Title }}</title>
<link>{{ .Permalink }}</link>
<pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
2019-08-11 19:36:19 +02:00
{{ with .Site.Author.Email }}
<author>{{ . }}{{ with .Site.Author.Name }} ({{ . }}){{ end }}</author>
{{ end }}
2019-08-02 10:16:59 +02:00
<guid>{{ .Permalink }}</guid>
<description>{{ .Content | html }}</description>
</item>
{{ end }}
</channel>
</rss>