Skip to content

Instantly share code, notes, and snippets.

@dyscribe
Created December 25, 2015 20:58
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save dyscribe/1f7d69ee315c3f8316e2 to your computer and use it in GitHub Desktop.
Save dyscribe/1f7d69ee315c3f8316e2 to your computer and use it in GitHub Desktop.
The podcast rss file for my Jekyll Podcast Feed
---
---
<?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>
<description>{{ site.description | xml_escape }}</description>
<link>{{ site.url }}</link>
<language>{{ site.lang }}</language>
<managingEditor>{{ site.email }} ({{ site.author }})</managingEditor>
<webMaster>{{ site.email }} ({{ site.author }})</webMaster>
<copyright>2014-{{ site.time | "%Y" }} {{ site.title }}</copyright>
<pubDate>{{ site.time | date_to_rfc822 }}</pubDate>
<lastBuildDate>{{ site.time | date_to_rfc822 }}</lastBuildDate>
<image>
<link>{{ site.url }}</link>
<url>{{ site.url }}/images/itunes.png</url>
<title>{{ site.title }}</title>
</image>
<itunes:subtitle>{{ site.description | xml_escape }}</itunes:subtitle>
<itunes:author>{{ site.author }}</itunes:author>
<itunes:summary>{{ site.description | xml_escape }}</itunes:summary>
<itunes:keywords>{{ site.keywords }}</itunes:keywords>
<itunes:owner>
<itunes:name>{{ site.author }}</itunes:name>
<itunes:email>{{ site.email }}</itunes:email>
</itunes:owner>
<itunes:image href="{{ site.url }}/images/itunes.png" />
<itunes:category text="Music" />
<itunes:category text="Technology">
<itunes:category text="Podcasting" />
</itunes:category>
<itunes:category text="Society &amp; Culture">
<itunes:category text="Philosophy" />
</itunes:category>
<itunes:explicit>yes</itunes:explicit>
{% for post in site.posts %}
<item>
<title>{{ post.title | xml_escape }}</title>
<link>{{ site.url }}{{ post.url }}</link>
<pubDate>{{ post.date | date_to_rfc822 }}</pubDate>
<description>{{ post.excerpt | xml_escape }}</description>
<guid isPermaLink="true">{{ site.url }}{{ post.url }}</guid>
<enclosure url="http:{{ post.file }}" length="{{ post.length }}" type="audio/mp3"/>
<itunes:author>{{ site.author }}</itunes:author>
<itunes:subtitle>{{ site.title }}: {{ post.title }}</itunes:subtitle>
<itunes:summary>{{ post.summary | xml_escape }}</itunes:summary>
<itunes:duration>{{ post.duration }}</itunes:duration>
<itunes:keywords>{{ post.keywords }}</itunes:keywords>
<itunes:image href="{{ site.url }}/images/itunes.png" />
<itunes:explicit>{{ post.explicit }}</itunes:explicit>
<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