diff options
Diffstat (limited to 'example/podcast.xml')
-rw-r--r-- | example/podcast.xml | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/example/podcast.xml b/example/podcast.xml new file mode 100644 index 0000000..51dd567 --- /dev/null +++ b/example/podcast.xml @@ -0,0 +1,48 @@ +<?xml version="1.0" encoding="UTF-8"?> +<rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0"> + +<channel> + <title>Example Podcast</title> + <link>https://www.example.org/</link> + <language>en</language> + <copyright>© 2024 Jesse Morgan</copyright> + <lastBuildDate>{{ now() | date(format="%a, %e %b %Y %T %z") }}</lastBuildDate> + <itunes:subtitle>An example podcast</itunes:subtitle> + <itunes:author>John Doe</itunes:author> + <itunes:keywords>example</itunes:keywords> + <itunes:summary>This is only a test</itunes:summary> + <description>This is only a test</description> + <itunes:owner> + <itunes:name>John Doe</itunes:name> + <itunes:email>john@example.org</itunes:email> + </itunes:owner> + <itunes:image href="https://example.org/images/logo.png" /> + <itunes:category text="Religion & Spirituality"> + <itunes:category text="Christianity" /> + </itunes:category> + <itunes:type>episodic</itunes:type> + + {% for entry in entries | sort(attribute="date") | reverse | slice(end=10) %} + <item> + <title>{{ entry.title }}</title> + {% if entry.album %} + <itunes:subtitle>{{ entry.album }}: {{ entry.title }}</itunes:subtitle> + {% endif %} + <itunes:author>{{ entry.artist }}</itunes:author> + <itunes:summary> + {% if entry.album %}Part of the {{ entry.album }} series {% endif %} + By {{ entry.artist }} + </itunes:summary> + <itunes:image href="https://example.org/logo.png" /> + <enclosure url="https://example.org/{{ entry.filename }}" length="{{ entry.size }}" type="audio/mpeg" /> + <guid>{{ entry.filename }}</guid> + <pubDate>{{ entry.date | date(format="%a, %e %b %Y %T %z") }}</pubDate> + <itunes:duration>{{ entry.duration }}</itunes:duration> + <itunes:explicit>false</itunes:explicit> + <link>https://example.org/{{ entry | make_filename(template="episodes.html") }}</link> + </item> + + {% endfor %} + +</channel> +</rss> |