-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfeed.xml
More file actions
24 lines (24 loc) · 980 Bytes
/
feed.xml
File metadata and controls
24 lines (24 loc) · 980 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
---
layout: feed
---
{% for post in site.posts %}
<item>
<title>{{ post.title | xml_escape }}</title>
<description>{{ post.description | xml_escape }}</description>
<itunes:image href="{{ post.picture.src | prepend: site.baseurl | prepend: site.url }}" />
<pubDate>{{ post.date | date_to_rfc822 }}</pubDate>
<link>{{ post.url | prepend: site.baseurl | prepend: site.url }}</link>
<guid isPermaLink="true">{{ post.url | prepend: site.baseurl | prepend: site.url }}</guid>
{% for tag in post.tags %}
<category>{{ tag | xml_escape }}</category>
{% endfor %}
{% for cat in post.categories %}
<category>{{ cat | xml_escape }}</category>
{% endfor %}
{% if post.explicit %}
<itunes:explicit>{{ post.explicit }}</itunes:explicit>
{% endif %}
<itunes:duration>{{ post.audio.duration }}</itunes:duration>
<enclosure url="{{post.audio.src}}" length="{{post.audio.size}}" type="audio/mp3" />
</item>
{% endfor %}