-
Notifications
You must be signed in to change notification settings - Fork 1
/
rss2.xml
131 lines (128 loc) · 5.27 KB
/
rss2.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
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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:wfw="http://wellformedweb.org/CommentAPI/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd"
xmlns:rawvoice="http://www.rawvoice.com/rawvoiceRssModule/"
xmlns:googleplay="http://www.google.com/schemas/play-podcasts/1.0"
>
<channel>
{% if tag.path == "/meme/" %}
{% set channel = config.podcast.meme %}
<itunes:category text="Science & Medicine">
<itunes:category text="Social Sciences" />
</itunes:category>
<itunes:category text="Education">
<itunes:category text="Higher Education" />
</itunes:category>
<itunes:category text="News & Politics">
</itunes:category>
{% elif tag.path == "/mig/" %}
{% set channel = config.podcast.mig %}
<itunes:category text="News & Politics">
</itunes:category>
<itunes:category text="Science & Medicine">
<itunes:category text="Social Sciences" />
</itunes:category>
<itunes:category text="Education">
<itunes:category text="Higher Education" />
</itunes:category>
{% elif tag.path == "/pub/" %}
{% set channel = config.podcast.pub %}
<itunes:category text="News & Politics">
</itunes:category>
<itunes:category text="Science & Medicine">
<itunes:category text="Social Sciences" />
</itunes:category>
<itunes:category text="Education">
<itunes:category text="Higher Education" />
</itunes:category>
{% elif tag.path == "/read/" %}
{% set channel = config.podcast.read %}
<itunes:category text="Science & Medicine">
<itunes:category text="Social Sciences" />
</itunes:category>
<itunes:category text="Education">
<itunes:category text="Higher Education" />
</itunes:category>
<itunes:category text="News & Politics">
</itunes:category>
{% elif tag.path == "/scholar/" %}
{% set channel = config.podcast.scholar %}
<itunes:category text="Education">
<itunes:category text="Higher Education" />
</itunes:category>
<itunes:category text="Science & Medicine">
<itunes:category text="Social Sciences" />
</itunes:category>
<itunes:category text="Society & Culture">
<itunes:category text="Philosophy" />
</itunes:category>
{% elif tag.path == "/talk/" %}
{% set channel = config.podcast.talk %}
<itunes:category text="News & Politics">
</itunes:category>
<itunes:category text="Science & Medicine">
<itunes:category text="Social Sciences" />
</itunes:category>
<itunes:category text="Education">
<itunes:category text="Higher Education" />
</itunes:category>
{% endif %}
<title>{{ channel.title | e }}</title>
<link>{{ channel.url | uriencode }}</link>
<itunes:new-feed-url>{{ channel.feed | uriencode }}</itunes:new-feed-url>
<atom:link href="{{ channel.feed | uriencode }}" rel="self" type="application/rss+xml"/>
<description>{{ channel.description | e }}</description>
<itunes:summary>{{ channel.description | e }}</itunes:summary>
<itunes:author>{{ channel.author | e }}</itunes:author>
<itunes:explicit>no</itunes:explicit>
<itunes:image href="{{ channel.cover | uriencode }}" />
<image>
<title>{{ channel.title | e }}</title>
<url>{{ channel.cover | uriencode }}</url>
<link>{{ channel.url | uriencode }}</link>
</image>
<itunes:owner>
<itunes:name>{{ channel.author | e }}</itunes:name>
<itunes:email>{{ channel.email | uriencode }}</itunes:email>
</itunes:owner>
<managingEditor>{{ channel.email | uriencode }} ({{ channel.author | e }})</managingEditor>
<copyright>{{ channel.copyright | e }}</copyright>
<itunes:subtitle>{{ channel.subtitle | e }}</itunes:subtitle>
<rawvoice:rating>TV-G</rawvoice:rating>
<pubDate>{{ posts.first().updated.toDate().toUTCString() }}</pubDate>
<language>zh-CN</language>
<sy:updatePeriod>hourly</sy:updatePeriod>
<sy:updateFrequency>1</sy:updateFrequency>
{% for post in posts.toArray() %}
<item>
<title>{{ post.title | e }}</title>
<itunes:subtitle>{{ post.subtitle | e }}</itunes:subtitle>
<itunes:author>{{ post.author | e }}</itunes:author>
<link>{{ (url + post.path) | uriencode }}</link>
<guid>{{ (url + post.path) | uriencode }}</guid>
<pubDate>{{ post.date.toDate().toUTCString() }}</pubDate>
<description>
<![CDATA[
{{ post.content | safe }}
]]></description>
<itunes:summary><![CDATA[
{{ post.content | safe }}
]]></itunes:summary>
{% if config.feed.content %}
<content:encoded><![CDATA[
{{ post.content | safe }}
]]></content:encoded>
{% endif %}
<enclosure url="{{ post.audio | uriencode }}" type="audio/mpeg" />
<itunes:image href="{{ post.cover | uriencode }}" />
<itunes:explicit>{{ post.explicit | e }}</itunes:explicit>
</item>
{% endfor %}
</channel>
</rss>