62 lines
2.5 KiB
Plaintext
62 lines
2.5 KiB
Plaintext
<#include "header.ftl">
|
|
<@head title="${blog_title!}"/>
|
|
<#--<h1>公告</h1><#macro greet><font size="+2">Hello Joe!</font><@greet></@greet>
|
|
</#macro><p>${settings.index_notice!} </p> -->
|
|
<main>
|
|
<div class="wrap min">
|
|
<section class="home-title">
|
|
<h1>${blog_title!}</h1>
|
|
<span>${user.description!}</span>
|
|
<#--快捷-->
|
|
<div class="home-social"> </div>
|
|
</section>
|
|
<section class="home-posts">
|
|
<div class="post-item">
|
|
<#list posts.content as post>
|
|
<h2>
|
|
<a href="${post.fullPath!}">${post.title!}</a>
|
|
</h2>
|
|
<p>${post.summary!}</p>
|
|
<div class="post-meta">
|
|
<time class="date">
|
|
${post.createTime?string('yyyy-MM-dd')!}
|
|
</time>
|
|
<span class="category">
|
|
<#list post.categories as category>
|
|
${category.name!}
|
|
</#list>
|
|
</span>
|
|
<span class="tags">
|
|
<#list post.tags as tag>
|
|
<a href="${tag.fullPath}" class="tag">${tag.name}</a>
|
|
</#list>
|
|
</span>
|
|
<span class="comments">
|
|
${post.commentCount!}°C
|
|
</span>
|
|
<span class="visits">
|
|
${post.visits!}
|
|
</span>
|
|
</div>
|
|
</#list>
|
|
</div>
|
|
</section>
|
|
<section class="page-navigator">
|
|
<@paginationTag method="archives" page="${posts.number}" total="${posts.totalPages}" display="3">
|
|
<#if pagination.hasPrev>
|
|
<a href="${pagination.prevPageFullPath!}">上一页</a>
|
|
</#if>
|
|
<#list pagination.rainbowPages as number>
|
|
<#if number.isCurrent>
|
|
<span class="current">${number.page!}</span>
|
|
<#else>
|
|
<a href="${number.fullPath!}">${number.page!}</a>
|
|
</#if>
|
|
</#list>
|
|
<#if pagination.hasNext>
|
|
<a href="${pagination.nextPageFullPath!}">下一页</a>
|
|
</#if>
|
|
</@paginationTag>
|
|
</section>
|
|
</div>
|
|
</main> |