Skip to content

Instantly share code, notes, and snippets.

@kdankov
Created January 31, 2023 11:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kdankov/f68e1f9145f7a8801051dfa5b01845ba to your computer and use it in GitHub Desktop.
Save kdankov/f68e1f9145f7a8801051dfa5b01845ba to your computer and use it in GitHub Desktop.
Podcast RSS Template for Jekyll
---
---
<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xml:lang="{{ site.lang }}">
<channel>
<atom:link href="{{ site.url }}/podcast.rss" rel="self" type="application/rss+xml" />
<title>{{ site.title }}</title>
<link>{{ site.url }}{{ site.baseurl }}</link>
<language>{{ site.lang }}</language>
<copyright>&#xA9; {{ site.time | date: "%Y" }} {{ site.title }}</copyright>
<itunes:subtitle>{{ site.subtitle | xml_escape }}</itunes:subtitle>
<itunes:author>{{ site.author }}</itunes:author>
<itunes:summary>{{ site.description | xml_escape }}</itunes:summary>
<description>{{ site.description | xml_escape }}</description>
<webMaster>{{ site.email }} ({{ site.author }})</webMaster>
<itunes:owner>
<itunes:name>{{ site.author }}</itunes:name>
<itunes:email>{{ site.email }}</itunes:email>
</itunes:owner>
<itunes:image href="{{ site.url }}{{ site.baseurl }}/images/itunes.png" />
<itunes:category text="Technology" />
<itunes:category text="Society &amp; Culture" />
<itunes:category text="Education">
<itunes:category text="Educational Technology" />
</itunes:category>
<itunes:explicit>no</itunes:explicit>
{% for post in site.posts %}
<item>
<title>{{ post.title | xml_escape }}</title>
<itunes:author>{{ site.author }}</itunes:author>
<itunes:subtitle>{{ site.title | xml_escape }}: {{ post.title | xml_escape }}</itunes:subtitle>
<itunes:summary>{{ post.summary | xml_escape }}</itunes:summary>
<itunes:image href="{{ site.url }}/images/itunes.png" />
<enclosure url="{{ post.file }}" length="{{ post.length }}" type="audio/mp3"/>
<guid isPermaLink="true">{{ site.url }}{{ site.baseurl }}{{ post.url }}</guid>
<pubDate>{{ post.date | date_to_rfc822 }}</pubDate>
<itunes:duration>{{ post.duration }}</itunes:duration>
<itunes:explicit>{{ post.explicit }}</itunes:explicit>
<description>{{ post.summary | xml_escape }} {{ post.description | xml_escape }} Show Notes Available at {{ site.url }}{{ site.baseurl }}{{ post.url }}.</description>
<itunes:keywords>{{ post.keywords }}</itunes:keywords>
<itunes:block>{{ post.block }}</itunes:block>
</item>
{% endfor %}
</channel>
</rss>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment