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/category.ftl

34 lines
1.3 KiB
Plaintext
Raw Normal View History

2021-12-28 08:36:20 +08:00
<#include "module/macro.ftl">
<@layout title="分类:${category.name} - ${blog_title!}">
<main>
<#include "module/header.ftl">
<div class="category">
<div class="title">分类:${category.name}</div>
<div class="list">
<#list posts.content as post>
<div class="post-title">
<a href="${post.fullPath!}">${post.title!}</a>
<div class="time"><span class="date">${post.createTime?string('yyyy-MM-dd')}</span></div>
</div>
2021-12-28 08:36:20 +08:00
</#list>
</div>
</div>
<#if posts.totalPages gt 1>
<@paginationTag method="categoryPosts" 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">
更多文章
2021-12-28 08:36:20 +08:00
</a>
</#if>
</div>
</@paginationTag>
</#if>
</main>
2021-12-28 08:36:20 +08:00
</@layout>