This repository has been archived on 2024-07-11. You can view files and clone it, but cannot push or open issues or pull requests.
redemption/archives.ftl

38 lines
1.5 KiB
Plaintext
Raw Permalink Normal View History

2021-12-28 08:36:20 +08:00
<#include "module/macro.ftl">
<@layout title="归档 - ${blog_title!}">
<main>
<#include "module/header.ftl">
<div class="archives">
<#list archives as archive>
2021-12-31 15:53:37 +08:00
<ul id="${archive.year?c}">
<div class="year">
${archive.year?c}
</div>
<#list archive.posts?sort_by("createTime")?reverse as post>
2021-12-31 15:53:37 +08:00
<li id="${post.createTime?string('MM-dd')}">
<a href="${post.fullPath!}">${post.title!}</a>
2021-12-31 15:53:37 +08:00
<span>${post.createTime?string('MM-dd')}</span>
</li>
</#list>
2021-12-31 15:53:37 +08:00
</ul>
2021-12-28 08:36:20 +08:00
</#list>
</div>
<#if posts.totalPages gt 1>
<@paginationTag method="archives" page="${posts.number}" total="${posts.totalPages}" display="3">
<div class="pagenav">
<#if pagination.hasPrev>
<a href="${pagination.prevPageFullPath!}" class="pre">
退回上页
</a>
</#if>
<#if pagination.hasNext>
<a href="${pagination.nextPageFullPath!}" class="next">
阅览更多
</a>
</#if>
</div>
</@paginationTag>
</#if>
</main>
2021-12-28 08:36:20 +08:00
</@layout>