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

44 lines
1.9 KiB
Plaintext
Raw Permalink Normal View History

2021-12-28 08:36:20 +08:00
<#include "module/macro.ftl">
2021-12-28 17:05:11 +08:00
<@layout title="${blog_title!}">
<main>
<#include "module/header.ftl">
2021-12-28 17:05:11 +08:00
<#list posts.content as post>
2021-12-31 15:53:37 +08:00
<div class="index">
2021-12-28 17:05:11 +08:00
<h1><a href='${post.fullPath!}'>${post.title!}</a></h1>
<#if settings.enable_summary!true>
<p>${post.summary!}......</p>
</#if>
<div class="info">
<span class="date">
<i class="ri-map-pin-time-line"></i>
<a href="${archives_url!}">${post.createTime?string('yyyy.MM.dd')}</a>
2021-12-28 17:05:11 +08:00
</span>
<#if post.tags?? && post.tags?size gt 0>
<span class="tag">
<i class="ri-bookmark-3-line"></i>
<#list post.tags as tag>
<a href="${tags_url!}">${tag.name!}</a>
2021-12-28 17:05:11 +08:00
</#list>
</span>
</#if>
</div>
</div>
</#list>
<#if posts.totalPages gt 1>
<@paginationTag method="index" page="${posts.number}" total="${posts.totalPages}" display="10">
<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>
2021-12-28 17:05:11 +08:00
</main>
</@layout>