-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfeed.xml
51 lines (44 loc) · 2.19 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
50
51
---
---
<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>{{ site.title }}</title>
<description>{{ site.description }}</description>
<link>{{ site.url }}</link>
<language>en-us</language>
<copyright>Copyright {{ site.podcast.year }}</copyright>
<webMaster>{{ site.podcast.owner.email }} ({{ site.podcast.owner.name }})</webMaster>
<image>
<url>{{ site.podcast.image }}</url>
<title>{{ site.title }}</title>
<link>{{ site.url }}</link>
</image>
<atom:link href="{{ site.url }}/feed.xml" rel="self" type="application/rss+xml" />
<itunes:author>{{ site.url }}</itunes:author>
<itunes:subtitle>{{ site.podcast.subtitle }}</itunes:subtitle>
<itunes:owner>
<itunes:name>{{ site.podcast.owner.name }}</itunes:name>
<itunes:email>{{ site.podcast.owner.email }}</itunes:email>
</itunes:owner>
<itunes:explicit>{{ site.podcast.explicit }}</itunes:explicit>
<itunes:category text="{{ site.podcast.category }}"><itunes:category text="{{ site.podcast.subcategory }}" /></itunes:category>
{% for post in site.posts %}
<item>
{% assign post_url = site.url | append: post.url %}
{% assign post_title = post.title | append: " - " | append: site.title %}
<title>{{ post.title }}</title>
<description><![CDATA[{{ post.excerpt | markdownify }}]]></description>
<pubDate>{{ post.date | date: "%a, %d %b %Y %H:%M:%S %z" }}</pubDate>
<link>{{ post_url }}</link>
<guid isPermaLink="true">{{ post_url }}</guid>
{% if post.podcast %}
<enclosure url="{{ post.podcast.file }}" type="{{ site.podcast.defaultFileType }}" length="{{ post.podcast.filesize }}" />
<itunes:author>{{ site.podcast.owner.email }}</itunes:author>
<itunes:summary><![CDATA[{{ post.excerpt | markdownify }}]]></itunes:summary>
<itunes:duration>{{ post.podcast.length }}</itunes:duration>
{% endif %}
</item>
{% endfor %}
</channel>
</rss>