freedom/layouts/_default/rss.xml

29 lines
1.2 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>
2023-02-19 21:39:30 -05:00
<atom:link href="{{.Site.BaseURL}}/index.xml" 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-18 16:21:16 -04:00
<guid>{{ .Permalink }}</guid>{{ if .Params.gif}}
<enclosure url="{{.Site.BaseURL}}{{.Params.gif}}" />
{{end}}{{ if .Params.video}}
2023-04-05 15:48:37 -04:00
<enclosure url="{{.Params.video}}" />
2022-09-15 17:12:24 -04:00
{{end}}{{ if .Params.audio}}
<enclosure url="{{.Site.BaseURL}}{{.Params.audio}}" />
{{end}}{{ if .Params.image}}
<image>{{.Site.BaseURL}}{{.Params.image}}</image>{{end}}
2023-01-04 16:59:09 -05:00
<description>{{- .Content | html -}}</description>
2022-09-15 17:12:24 -04:00
</item>{{ end }}
2022-08-17 14:50:07 -04:00
</channel>
</rss>