valor/layouts/rss.xml

38 lines
1.9 KiB
XML
Raw Normal View History

2024-08-24 00:53:06 -04:00
{{- printf "<?xml-stylesheet href=\"/feed.xsl\" type=\"text/xsl\"?>" | safeHTML }}
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:podcast="https://github.com/Podcastindex-org/podcast-namespace/blob/main/docs/1.0.md" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd">
2022-08-17 14:47:54 -04:00
<channel>
<title>{{.Title}}</title>
<link>{{ .Permalink }}</link>
<description>{{.Params.description}}</description>
<generator>Hugo -- gohugo.io</generator>{{ with .Site.LanguageCode }}
2024-08-24 00:53:06 -04:00
<language>{{.}}</language>{{end}}
2022-09-04 09:40:18 -04:00
<image>
2024-08-24 00:53:06 -04:00
<url>{{.Site.BaseURL}}{{.Site.Params.default_img}}</url>
</image>
<atom:link href="{{.Site.BaseURL}}index.xml" rel="self" type="application/rss+xml" />{{if .Site.Params.funding}}
<podcast:funding url="{{.Site.Params.funding}}">Support this work!</podcast:funding>{{end}} {{ range .Site.RegularPages }}
2022-08-17 14:47:54 -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:14 -04:00
<guid>{{ .Permalink }}</guid>{{ if .Params.gif}}
2024-08-24 00:53:06 -04:00
<enclosure url="{{.Params.gif}}" />
2022-09-18 16:21:14 -04:00
{{end}}{{ if .Params.video}}
2024-08-24 00:53:06 -04:00
<enclosure url="{{.Params.video}}" />
2022-09-04 09:40:18 -04:00
{{end}}{{ if .Params.audio}}
2024-08-24 00:53:06 -04:00
{{if in .Params.audio "https://"}}
<enclosure url="{{.Params.audio}}" />
{{else}}
<enclosure url="{{.Site.BaseURL}}{{.Params.audio}}" />
{{end}}
2022-09-04 09:40:18 -04:00
{{end}}{{ if .Params.image}}
2024-08-24 00:53:06 -04:00
<image>{{.Site.BaseURL}}{{.Params.image}}</image>
<media:thumbnail href="{{.Site.BaseURL}}{{.Params.image}}" />
<itunes:image href="{{.Site.BaseURL}}{{.Params.image}}" />{{end}}
<description>{{.Params.description}}</description>
<content:encoded>{{- .Content | html -}}</content:encoded>
2022-09-04 09:40:18 -04:00
</item>{{ end }}
2022-08-17 14:47:54 -04:00
</channel>
</rss>