-
Notifications
You must be signed in to change notification settings - Fork 1
/
podcast.xml
33 lines (33 loc) · 1.38 KB
/
podcast.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
---
layout: null
---
<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd">
<channel>
<title>{{ site.title | xml_escape }}</title>
<description>{{ site.description | xml_escape }}</description>
<link>{{ site.url }}{{ site.baseurl }}/</link>
<pubDate>{{ site.time | date_to_rfc822 }}</pubDate>
<lastBuildDate>{{ site.time | date_to_rfc822 }}</lastBuildDate>
<itunes:image href="https://micro.blog/{{ site.username }}/podcast.png" />
<itunes:category text="{{ site.itunes_category | xml_escape }}">
<itunes:category text="{{ site.itunes_subcategory | xml_escape }}"></itunes:category>
</itunes:category>
<itunes:explicit>no</itunes:explicit>
<language>en</language>
{% for post in site.posts limit:200 %}
{% if post.audio contains "mp3" %}
<item>
<title>{{ post.title | xml_escape }}</title>
<description>{{ post.content | xml_escape }}</description>
<itunes:subtitle>{{ post.content | xml_escape }}</itunes:subtitle>
<itunes:summary>{{ post.content | xml_escape }}</itunes:summary>
<pubDate>{{ post.date | date_to_rfc822 }}</pubDate>
<link>{{ post.url | prepend: site.baseurl | prepend: site.url }}</link>
<guid isPermaLink="true">{{ post.guid }}</guid>
<enclosure url="{{ post.audio }}" type="audio/mpeg"></enclosure>
</item>
{% endif %}
{% endfor %}
</channel>
</rss>