From 9438bdf2b7c46d173f175874811c028c78d723a9 Mon Sep 17 00:00:00 2001 From: Jesse Morgan Date: Thu, 26 Dec 2024 17:11:49 -0800 Subject: Initial commit --- example/episodes.html | 28 ++++++++++++++++++++++++++++ example/podcast.xml | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 76 insertions(+) create mode 100644 example/episodes.html create mode 100644 example/podcast.xml (limited to 'example') diff --git a/example/episodes.html b/example/episodes.html new file mode 100644 index 0000000..1956472 --- /dev/null +++ b/example/episodes.html @@ -0,0 +1,28 @@ + + + + {{ entry.title }} + + +
+
+

{{ entry.title }}

+ {% if entry.album %} +

Part of the {{ entry.album }} series.

+ {% endif %} +
+ By {{ entry.artist }} + On {{ entry.date | date(format="%b %d, %Y") }} + +

+ +

+

Download MP3

+
+ + + + 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 @@ + + + + + Example Podcast + https://www.example.org/ + en + © 2024 Jesse Morgan + {{ now() | date(format="%a, %e %b %Y %T %z") }} + An example podcast + John Doe + example + This is only a test + This is only a test + + John Doe + john@example.org + + + + + + episodic + + {% for entry in entries | sort(attribute="date") | reverse | slice(end=10) %} + + {{ entry.title }} + {% if entry.album %} + {{ entry.album }}: {{ entry.title }} + {% endif %} + {{ entry.artist }} + + {% if entry.album %}Part of the {{ entry.album }} series {% endif %} + By {{ entry.artist }} + + + + {{ entry.filename }} + {{ entry.date | date(format="%a, %e %b %Y %T %z") }} + {{ entry.duration }} + false + https://example.org/{{ entry | make_filename(template="episodes.html") }} + + + {% endfor %} + + + -- cgit v1.2.3