hexo-generator-podcasts
Version:
Hexo Generator for Podcast
147 lines (146 loc) • 3.35 kB
text/xml
<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>
<title>
{{title|xml_escape}}
</title>
<link href="{{feedUrl}}" rel="self" type="application/rss+xml" />
<link>
{{homepage}}
</link>
<description>
{{description|xml_escape}}
</description>
<lastBuildDate>
{{lastBuildDate}}
</lastBuildDate>
<language>
{{language}}
</language>
<updatePeriod>
{{updatePeriod}}
</updatePeriod>
<updateFrequency>
{{updateFrequency}}
</updateFrequency>
<generator>
https://github.com/bestony/hexo-generator-podcasts
</generator>
<image>
<url>
{{logo|get_url}}
</url>
<title>
{{title|xml_escape}}
</title>
<link>
{{homepage}}
</link>
<width>
32
</width>
<height>
32
</height>
</image>
<link rel="hub" href="https://pubsubhubbub.appspot.com/" />
<summary>
{{description|xml_escape}}
</summary>
<author>
{{author}}
</author>
<explicit>
{{explicit}}
</explicit>
<image href="{{logo|get_url}}" />
<itunes:owner>
<itunes:name>{{owner.name}}</itunes:name>
<itunes:email>{{owner.email}}</itunes:email>
</itunes:owner>
<owner>
<name>
{{owner.name}}
</name>
<email>
{{owner.email}}
</email>
</owner>
<managingEditor>
{{owner.email}} ({{owner.name}})
</managingEditor>
<copyright>
{{owner.copyright}}
</copyright>
<subtitle>
{{subtitle}}
</subtitle>
<image>
<title>
{{title|xml_escape}}
</title>
<url>
{{logo|get_url}}
</url>
<link>
{{homepage}}
</link>
</image>
{% for item in category %}
<category text="{{item.top}}">
{% if item.sub %}
<category text="{{item.sub}}">
{%endif%}
</category>
</category>
{% endfor %}
<frequency>
Weekly
</frequency>
{% for episode in posts %}
<item>
<title>
{{episode.title|xml_escape}}
</title>
<link>
{{episode.permalink}}
</link>
<pubDate>
{{episode.date| date_to_rfc822}}
</pubDate>
<guid isPermaLink="false">
{{episode.permalink}}
</guid>
<comments>
{{episode.permalink}}
</comments>
<commentRss>
{{episode.permalink}}
</commentRss>
<comments>
0
</comments>
<description>
{{episode.more| noControlChars | strip_html | xml_escape }}
</description>
<encoded>
{{episode.more| noControlChars | strip_html | xml_escape }}
</encoded>
<enclosure url="{{episode.media|get_url}}" length="{{length}}" type="audio/mpeg" />
<subtitle>
{{episode.more| noControlChars | strip_html | xml_escape }}
</subtitle>
<summary>
{{episode.content| noControlChars | strip_html | xml_escape }}
</summary>
<image href="{{episode.image|get_url}}" />
<title>
{{episode.title}}
</title>
<duration>
{{episode.duration}}
</duration>
</item>
{% endfor %}
</channel>
</rss>