-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpodcast.xml
More file actions
39 lines (39 loc) · 1.63 KB
/
podcast.xml
File metadata and controls
39 lines (39 loc) · 1.63 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
---
layout: null
regenerate: true
---
<?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.itunes_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:author>{{ site.itunes_author | xml_escape }}</itunes:author>
<itunes:explicit>no</itunes:explicit>
<itunes:owner>
<itunes:name>{{ site.itunes_author | xml_escape }}</itunes:name>
<itunes:email>{{ site.itunes_email | xml_escape }}</itunes:email>
</itunes:owner>
<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>