{{ noescape "<?xml version=\"1.0\" encoding=\"utf-8\"?>" }}

<rss version="2.0" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:content="http://purl.org/rss/1.0/modules/content/">
	<channel>
		<title>{{ .Podcast.Title }}</title>
		<link>{{ .Podcast.Url }}</link>
		<language>{{ .Podcast.Language }}</language>
		<copyright>&#169; 2021 The Handmade Network</copyright>{{/* TODO(asaf): Change this in case we want to allow user podcasts */}}
		<itunes:author>The Handmade Network</itunes:author>
		<itunes:owner>
			<itunes:name>The Handmade Network</itunes:name>
			<itunes:email>team@handmade.network</itunes:email>
		</itunes:owner>
		<description>{{ .Podcast.Description }}</description>
		<itunes:image href="{{ .Podcast.ImageUrl }}" />
		<itunes:category text="Technology" />
		<itunes:explicit>false</itunes:explicit>
		{{ range .Episodes }}
			<item>
				<guid>{{ .GUID }}</guid>
				<title>{{ .Title }}</title>
				<description>{{ .Description }}</description>
				<itunes:episode>{{ .EpisodeNumber }}</itunes:episode>
				<itunes:order>{{ .EpisodeNumber }}</itunes:order>
				<enclosure url="{{ .FileUrl }}" length="{{ .FileSize }}" type="audio/mpeg" />
				<pubDate>{{ rfc1123 .PublicationDate }}</pubDate>
				<itunes:duration>{{ .Duration }}</itunes:duration>
				<link>{{ .Url }}</link>
			</item>
		{{ end }}
	</channel>
</rss>
