-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfeed.xml
More file actions
82 lines (75 loc) · 3.55 KB
/
feed.xml
File metadata and controls
82 lines (75 loc) · 3.55 KB
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
---
title: Feed
position: 0
layout:
show: master
---
<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/" xmlns:atom="http://www.w3.org/2005/Atom/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0">
<channel>
{% assign show = site.data.shows[page.show] %}
<atom:link href="{{ site.itunes-url }}/{{ show.collection }}/feed.xml" rel="self" type="application/rss+xml" />
<title>{{ show.name }}</title>
<description>{{ show.description | xml_escape }}</description>
<link>{{ site.itunes-url }}/{{ show.collection }}</link>
<language>{{ show.lang }}</language>
<managingEditor>{{ site.itunes-email }} ({{ site.itunes-author }})</managingEditor>
<webMaster>{{ site.itunes-email }} ({{ site.itunes-author }})</webMaster>
<copyright>2014-2018 {{ site.title }}</copyright>
<pubDate>{{ site.time | date_to_rfc822 }}</pubDate>
<lastBuildDate>{{ site.time | date_to_rfc822 }}</lastBuildDate>
<image>
<link>{{ site.itunes-url }}/{{ show.collection }}</link>
<url>{{ site.itunes-url }}{{ show.artwork }}</url>
<title>{{ show.name }}</title>
</image>
<itunes:subtitle>{{ show.description | xml_escape }}</itunes:subtitle>
<itunes:author>{{ site.itunes-author }}</itunes:author>
<itunes:summary>{{ show.description | xml_escape }}</itunes:summary>
<itunes:keywords>{{ show.keywords }}</itunes:keywords>
<itunes:owner>
<itunes:name>{{ site.itunes-author }}</itunes:name>
<itunes:email>{{ site.itunes-email }}</itunes:email>
</itunes:owner>
<itunes:image href="{{ site.itunes-url }}{{ show.artwork }}" />
<itunes:category text="{{ show.category1 }}" />
<itunes:category text="{{ show.category2 }}">
<itunes:category text="{{ show.category3 }}" />
</itunes:category>
<itunes:category text="{{ show.category4 }}">
<itunes:category text="{{ show.category5 }}" />
</itunes:category>
<itunes:explicit>{{ show.explicit }}</itunes:explicit>
{% for collection in site.collections %}
{% unless collection.label == 'people' or collection.label == 'posts' or collection.label == 'uploads' %}
{% for doc in collection.docs %}
{% unless doc.title == 'Feed' %}
<item>
<title>{{ collection.title | xml_escape }} {{ doc.episode | xml_escape }}: {{ doc.title | xml_escape }}</title>
<link>{{ site.itunes-url }}{{ doc.url }}</link>
<pubDate>{{ doc.date | date_to_rfc822 }}</pubDate>
<description>{{ doc.description | xml_escape }}</description>
<guid isPermaLink="true">{{ site.itunes-url }}{{ doc.url }}</guid>
<enclosure url="{{ doc.mp3 }}" length="{{ doc.length }}" type="audio/mp3"/>
<itunes:author>{{ show.hosts }}</itunes:author>
<itunes:subtitle>{{ doc.description | xml_escape }}</itunes:subtitle>
<itunes:summary>{{ doc.description | xml_escape }}</itunes:summary>
<itunes:duration>{{ doc.duration }}</itunes:duration>
<itunes:explicit>{{ doc.explicit }}</itunes:explicit>
<itunes:block>{{ doc.block }}</itunes:block>
<content:encoded><![CDATA[{{ doc.description | markdownify | expand_urls: site.url | cdata_escape }}<br>
{% if doc.sponsor %}
This episode of {{ show.name }} is sponsored by: <br>
{{ doc.sponsor | markdownify | expand_urls: site.url | cdata_escape }}<br>
{% endif %}
{{ doc.content | markdownify | expand_urls: site.url | cdata_escape }}
]]>
</content:encoded>
<itunes:image href="{{ site.url }}{{ show.artwork }}" />
</item>
{% endunless %}
{% endfor %}
{% endunless %}
{% endfor %}
</channel>
</rss>