freedom/layouts/_default/rss.xml

27 lines
1.1 KiB
XML
Raw Normal View History

2022-08-17 14:50:07 -04:00
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
2022-09-15 17:12:24 -04:00
<title>{{.Title}}</title>
2022-08-17 14:50:07 -04:00
<link>{{ .Permalink }}</link>
<description>{{.Params.description}}</description>
<generator>Hugo -- gohugo.io</generator>{{ with .Site.LanguageCode }}
<language>{{.}}</language>{{end}}
2022-09-15 17:12:24 -04:00
<image>
<url>{{.Site.BaseURL}}{{.Site.Params.default_img}}</url>
</image>
<atom:link href="{{.Site.BaseURL}}/rss" rel="self" type="application/rss+xml" />{{ range .Site.RegularPages }}
2022-08-17 14:50:07 -04:00
<item>
<title>{{ .Title }}</title>
<link>{{ .Permalink }}</link>
<pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
{{ with .Site.Author.email }}<author>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</author>{{end}}
2022-09-15 17:12:24 -04:00
<guid>{{ .Permalink }}</guid>{{ if .Params.video}}
<enclosure url="{{.Site.BaseURL}}{{.Params.video}}" />
{{end}}{{ if .Params.audio}}
<enclosure url="{{.Site.BaseURL}}{{.Params.audio}}" />
{{end}}{{ if .Params.image}}
<image>{{.Site.BaseURL}}{{.Params.image}}</image>{{end}}
<description>{{ .Summary | html}}</description>
</item>{{ end }}
2022-08-17 14:50:07 -04:00
</channel>
</rss>