forked from halo-dev/halo-theme-anatole
-
Notifications
You must be signed in to change notification settings - Fork 0
/
category.ftl
34 lines (34 loc) · 1.57 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
31
32
33
34
<#include "module/macro.ftl">
<@head title="分类:${category.name} · ${options.blog_title!'Anatole'}" keywords="${options.seo_keywords!'Anatole'}" description="${options.seo_description!'Anatole'}"></@head>
<#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>
<div class="pagination">
<ul class="clearfix">
<#if posts.hasPrevious()>
<#if posts.number == 1>
<li class="pre pagbuttons">
<a class="btn" role="navigation" href="${options.blog_url!}/">上一页</a>
</li>
<#else >
<li class="pre pagbuttons">
<a class="btn" role="navigation" href="${options.blog_url!}/page/${posts.number}">上一页</a>
</li>
</#if>
</#if>
<#if posts.hasNext()>
<li class="next pagbuttons">
<a class="btn" role="navigation" href="${options.blog_url!}/page/${posts.number+2}">下一页</a>
</li>
</#if>
</ul>
</div>
</#if>
</div>
</div>
</div>
<@footer></@footer>