pitchandplay/layouts/index.podcast.xml
2025-07-08 21:32:26 -04:00

84 lines
3.4 KiB
XML

{{- $pctx := . -}}
{{- if .IsHome -}}{{ $pctx = .Site }}{{- end -}}
{{- $pages := slice -}}
{{- if or $.IsHome $.IsSection -}}
{{- $pages = $pctx.RegularPages -}}
{{- else -}}
{{- $pages = $pctx.Pages -}}
{{- end -}}
{{- $limit := .Site.Config.Services.RSS.Limit -}}
{{- if ge $limit 1 -}}
{{- $pages = $pages | first $limit -}}
{{- end -}}
{{- printf "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?>" | safeHTML }}
<rss version="2.0"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd"
xmlns:podcast="https://podcastindex.org/namespace/1.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
<title>Pitch and Play</title>
<link>https://pitchandplay.org</link>
<language>en-us</language>
<copyright>and#169; {{ dateFormat "2006" now }} Pitch and Play</copyright>
<itunes:author>Pitch and Play</itunes:author>
<description>A podcast about actually playing the games your friends recommend.</description>
<generator>Hugo -- gohugo.io</generator>
<itunes:type>episodic</itunes:type>
<itunes:owner>
<itunes:name>Pitch and Play</itunes:name>
<itunes:email>hello@pitchandplay.org</itunes:email>
</itunes:owner>
<itunes:image href="https://pitchandplay.org/cover.png" />
<image>
<url>https://pitchandplay.org/cover.png</url>
<title>Pitch and Play</title>
<link>https://pitchandplay.org</link>
</image>
<itunes:category text="Leisure">
<itunes:category text="Video Games"/>
</itunes:category>
<itunes:explicit>true</itunes:explicit>
<itunes:summary>A podcast about actually playing the games your friends recommend.</itunes:summary>
<atom:link
href="https://pitchandplay.org/feed.xml"
rel="self"
type="application/rss+xml" />
<lastBuildDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</lastBuildDate>
<itunes:new-feed-url>
https://pitchandplay.org/feed.xml
</itunes:new-feed-url>
{{ range (where .Site.RegularPages "Section" "episodes") }}
<item>
<title>{{ .Params.Title | plainify }}</title>
<link>{{ .Permalink }}</link>
<itunes:episodeType>full</itunes:episodeType>
<itunes:title>{{ .Params.Title | plainify }}</itunes:title>
<description>
{{ .Params.episodeSubtitle | plainify }}
</description>
<content:encoded>
{{ `<![CDATA[` | safeHTML }}{{ .Content }}{{ `]]>` | safeHTML }}
</content:encoded>
<itunes:summary>
{{ `<![CDATA[` | safeHTML }}{{ .Content }}{{ `]]>` | safeHTML }}
</itunes:summary>
<itunes:subtitle>{{ .Params.episodeSubtitle | plainify }}</itunes:subtitle>
<enclosure length="{{ .Params.episodeLength }}" type="audio/mpeg" url="{{ .Params.episodeURL }}" />
<guid>PPEpisode{{ .Params.episodeNumber }}</guid>
<pubDate>{{ .PublishDate.Format "Mon, 02 Jan 2006 15:04:00 -0700" }}</pubDate>
<itunes:duration>{{ .Params.episodeDuration }}</itunes:duration>
<itunes:explicit>false</itunes:explicit>
<itunes:episode>{{ .Params.episodeNumber }}</itunes:episode>
<podcast:episode>{{ .Params.episodeNumber }}</podcast:episode>
{{ if eq .Params.episodeChapters false }}
{{ else }}
<podcast:chapters url="{{ .Permalink }}/chapters.json" type="application/json+chapters" />
{{ end }}
</item>
{{ end }}</channel>
</rss>