-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy patharchive.ftl
47 lines (36 loc) · 1.25 KB
/
archive.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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<#assign head_extras>
<link rel="alternate" href="feed.xml" title="Hawkular Blog - RSS" type="application/rss+xml">
</#assign>
<#include "header.ftl">
<#assign numberOfBlogPosts = 5 />
<#include "navigation.ftl">
<section class="main-banner blog-mainbanner">
<div class="container">
<h1>Hawkular Blog</h1>
</div>
</section>
<div class="blog-container">
<#assign partitions = posts?chunk(numberOfBlogPosts) />
<#list partitions?first as post>
<#if (post.status == "published")>
<a href="${post.uri}"><h1><#escape x as x?xml>${post.title}</#escape></h1></a>
<p>${post.date?string("dd MMMM yyyy")}<#if post.author??>, by ${post.author}</#if></p>
<p>${post.body}</p>
<br />
<hr /><br />
<br />
</#if>
</#list>
<#if (posts?size > numberOfBlogPosts)>
<div class="large-4 columns blog-post-listings">
<h2>Older posts:</h2>
<ul>
<#list posts[numberOfBlogPosts..] as post>
<li>${post.date?string("dd MMMM yyyy")} - <a href="${post.uri}"><#escape x as x?xml>${post.title}</#escape></a></li>
</#list>
<br/><br/>
</div>
</#if>
<a href=feed.xml><i class="fa fa-rss"></i> RSS Feed</a>
</div>
<#include "footer.ftl">