44 lines
1.9 KiB
Plaintext
44 lines
1.9 KiB
Plaintext
<#include "module/macro.ftl">
|
|
<@layout title="${blog_title!}">
|
|
<main>
|
|
<#include "module/header.ftl">
|
|
<#list posts.content as post>
|
|
<div class="index">
|
|
<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>
|
|
${post.createTime?string('yyyy.MM.dd')}
|
|
</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="${tag.fullPath!}">${tag.name!}</a>
|
|
</#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>
|
|
</main>
|
|
</@layout> |