Init
This commit is contained in:
27
templates/feed.ftl
Normal file
27
templates/feed.ftl
Normal file
@ -0,0 +1,27 @@
|
||||
<?xml version="1.0"?>
|
||||
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
|
||||
<channel>
|
||||
<title>JBake</title>
|
||||
<link>${config.site_host}</link>
|
||||
<atom:link href="${config.site_host}/${config.feed_file}" rel="self" type="application/rss+xml" />
|
||||
<description>JBake Bootstrap Template</description>
|
||||
<language>en-gb</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>
|
||||
<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}
|
||||
</#escape>
|
||||
</description>
|
||||
</item>
|
||||
</#list>
|
||||
|
||||
</channel>
|
||||
</rss>
|
Reference in New Issue
Block a user