-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy pathfeed.ftl
30 lines (28 loc) · 1.08 KB
/
feed.ftl
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
<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>Hawkular Blog</title>
<link>${config.site_host}</link>
<atom:link href="${config.site_host}/${config.feed_file}" rel="self" type="application/rss+xml" />
<description>Blog posts about Hawkular</description>
<language>en-us</language>
<pubDate>${published_date?string("EEE, d MMM yyyy HH:mm:ss Z")}</pubDate>
<lastBuildDate>${published_date?string("EEE, d MMM yyyy HH:mm:ss Z")}</lastBuildDate>
<#list published_posts as post>
<item>
<title><#escape x as x?xml>${post.title}</#escape></title>
<link>${config.site_host}/${post.uri}</link>
<#if post.author??>
<author>[email protected] (${post.author})</author>
</#if>
<pubDate>${post.date?string("EEE, d MMM yyyy HH:mm:ss Z")}</pubDate>
<guid isPermaLink="false">${post.uri}</guid>
<description>
<#escape x as x?xml>
${post.body?replace("src=\"","src=\"${config.site_host}/")}
</#escape>
</description>
</item>
</#list>
</channel>
</rss>