forked from halo-dev/halo-theme-anatole
-
Notifications
You must be signed in to change notification settings - Fork 0
/
category.ftl
30 lines (30 loc) · 1.32 KB
/
category.ftl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<#include "module/macro.ftl">
<@head title="分类:${category.name} - ${blog_title!}"/>
<#include "module/sidebar.ftl">
<div class="main">
<#include "module/page-top.ftl">
<div class="autopagerize_page_element">
<div class="content">
<#include "module/post_entry.ftl">
<#if posts.totalPages gt 1>
<@paginationTag method="categoryPosts" page="${posts.number}" total="${posts.totalPages}" display="3" slug="${category.slug!}">
<div class="pagination">
<ul class="clearfix">
<#if pagination.hasPrev>
<li class="pre pagbuttons">
<a class="btn" role="navigation" href="${pagination.prevPageFullPath!}">上一页</a>
</li>
</#if>
<#if pagination.hasNext>
<li class="next pagbuttons">
<a class="btn" role="navigation" href="${pagination.nextPageFullPath!}">下一页</a>
</li>
</#if>
</ul>
</div>
</@paginationTag>
</#if>
</div>
</div>
</div>
<@footer></@footer>