Init
This commit is contained in:
27
templates/archive.ftl
Normal file
27
templates/archive.ftl
Normal file
@ -0,0 +1,27 @@
|
||||
<#include "header.ftl">
|
||||
|
||||
<#include "menu.ftl">
|
||||
|
||||
<div class="page-header">
|
||||
<h1>Blog Archive</h1>
|
||||
</div>
|
||||
|
||||
<!--<ul>-->
|
||||
<#list published_posts as post>
|
||||
<#if (last_month)??>
|
||||
<#if post.date?string("MMMM yyyy") != last_month>
|
||||
</ul>
|
||||
<h4>${post.date?string("MMMM yyyy")}</h4>
|
||||
<ul>
|
||||
</#if>
|
||||
<#else>
|
||||
<h4>${post.date?string("MMMM yyyy")}</h4>
|
||||
<ul>
|
||||
</#if>
|
||||
|
||||
<li>${post.date?string("dd")} - <a href="${content.rootpath}${post.uri}">${post.title}</a></li>
|
||||
<#assign last_month = post.date?string("MMMM yyyy")>
|
||||
</#list>
|
||||
</ul>
|
||||
|
||||
<#include "footer.ftl">
|
Reference in New Issue
Block a user