修改index.ftl macro.ftl
This commit is contained in:
parent
1dca944171
commit
d1552f4ed5
20
index.ftl
20
index.ftl
|
@ -1,5 +1,5 @@
|
|||
<#include "module/macro.ftl">
|
||||
<@layout title="${blog_title!}">
|
||||
<@head title="${blog_title!}"/>
|
||||
<#--<h1>公告</h1>
|
||||
<p>
|
||||
${settings.index_notice!}
|
||||
|
@ -37,8 +37,24 @@
|
|||
</#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>
|
||||
|
||||
</@layout>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<#macro layout title>
|
||||
<#macro head title>
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh">
|
||||
<head>
|
||||
|
|
Loading…
Reference in New Issue