-
Notifications
You must be signed in to change notification settings - Fork 1
/
feed.xml
49 lines (48 loc) · 1.97 KB
/
feed.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
---
layout: plain
---
<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:itunes="http://www.itunes.com/DTDs/Podcast-1.0.dtd">
<channel>
<title>{{ site.name }}</title>
<description>{{ site.description }}</description>
<link>{{ site.url }}</link>
<pubDate>{{ site.time | date_to_rfc822 }}</pubDate>
<lastBuildDate>{{ site.time | date_to_rfc822 }}</lastBuildDate>
<itunes:subtitle>{{ site.description }}</itunes:subtitle>
<itunes:author>{{ site.author.name }}</itunes:author>
<itunes:summary>{{ site.description }}</itunes:summary>
<itunes:owner>
<itunes:name>{{ site.author.name }}</itunes:name>
<itunes:email>{{ site.author.email }}</itunes:email>
</itunes:owner>
<itunes:image href="{{ site.author.image | absolute_url }}"/>
<itunes:category text="Technology">
<itunes:category text="Software"/>
<itunes:category text="Agile"/>
</itunes:category>
{% assign posts = site.posts | where_exp: "post", "post.draft != true" | sort: "date" | reverse %}
{% for post in posts limit: site.feed_count %}
<item>
<title>{{ post.title }}</title>
<description><![CDATA[
{% if post.episode %}#{{ post.episode }}:<br/>{% endif %}
{{ post.content }}
]]></description>
<pubDate>{{ post.date | date_to_rfc822 }}</pubDate>
<link>http://agileradio.github.io{{ post.url }}</link>
<guid isPermaLink="true">http://agileradio.github.io{{ post.url }}</guid>
<category>Radio</category>
{% if post.mp3url %}
{% assign mp3url = post.mp3url %}
{% endif %}
{% if post.mp3file %}
{% assign mp3url = "http://agileradio-assets1.s3-website-us-west-1.amazonaws.com/mp3/" | append: post.mp3file %}
{% endif %}
{% if mp3url %}
<enclosure url="{{ mp3url }}" type="audio/mpeg" {% if post.mp3size %}length="{{ post.mp3size }}"{% endif %}/>
{% endif %}
</item>
{% endfor %}
</channel>
</rss>