valor/layouts/rss.xml

40 lines
1.9 KiB
XML
Raw Normal View History

2024-08-24 23:19:19 -04:00
{{- printf "<?xml-stylesheet href=\"/css/feed.xsl\" type=\"text/xsl\"?>" | safeHTML }}
2024-08-31 16:43:48 -04:00
<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: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>
2024-08-31 16:45:14 -04:00
{{if .Site.Params.funding}}
2024-08-24 00:53:06 -04:00
<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>
2024-10-24 23:10:25 -04:00
<content:encoded>{{- .Content | html -}}
&lt;p&gt;Thank you for reading this through RSS 📡&lt;/p&gt;
</content:encoded>
2022-09-04 09:40:18 -04:00
</item>{{ end }}
2022-08-17 14:47:54 -04:00
</channel>
</rss>