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

36 lines
1.3 KiB
Plaintext
Raw Normal View History

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