-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrss.mustache
27 lines (26 loc) · 914 Bytes
/
rss.mustache
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
<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>{{ blog.title }}</title>
<description>{{ blog.feed.description }}</description>
<link>{{{ blog.url }}}</link>
<pubDate>{{ pubDate }}</pubDate>
<ttl>1800</ttl>
<atom:link href="{{{ blog.feed.url }}}" rel="self" type="application/rss+xml" />
{{#blog.feed.websub}}
<atom:link rel="hub" href="{{{ blog.feed.websub }}}" />
{{/blog.feed.websub}}
{{#posts}}
<item>
{{#rss.title}}<title>{{rss.title}}</title>{{/rss.title}}
<description>
{{rss.html}}
{{^rss.title}}<p><a href="{{url}}">&infin;</a></p>{{/rss.title}}
</description>
<link>{{{url}}}</link>
<guid isPermaLink="false">{{{id}}}</guid>
<pubDate>{{createdUTC}}</pubDate>
</item>
{{/posts}}
</channel>
</rss>