Initial commit
This commit is contained in:
24
templates/feed.xml
Normal file
24
templates/feed.xml
Normal file
@@ -0,0 +1,24 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<rss>
|
||||
<channel>
|
||||
<title>{{podcast.title}}</title>
|
||||
<link>{{podcast.homepage}}</link>
|
||||
{%- match podcast.logo_url %}
|
||||
{%- when Some with (logo_url) %}
|
||||
<image>
|
||||
<title>{{podcast.title}} Logo</title>
|
||||
<url>{{logo_url}}</url>
|
||||
</image>
|
||||
{%- when None %}
|
||||
{%- endmatch %}
|
||||
|
||||
{%- for episode in podcast.episodes %}
|
||||
<item>
|
||||
<title>{{episode.title}}</title>
|
||||
<enclosure url="{{episode.video_url}}" type="video/mpeg"/>
|
||||
<guid>{{episode.guid}}</guid>
|
||||
<pubDate>{{episode.pub_date.to_rfc2822()}}</pubDate>
|
||||
</item>
|
||||
{%- endfor %}
|
||||
</channel>
|
||||
</rss>
|
||||
Reference in New Issue
Block a user