forked from halo-dev/halo-theme-anatole
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsearch.ftl
36 lines (36 loc) · 1.45 KB
/
search.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
35
36
<#include "module/macro.ftl">
<@head title="搜索结果:${keyword!} - ${blog_title!}"/>
<#include "module/sidebar.ftl">
<div class="main">
<#include "module/page-top.ftl">
<div class="autopagerize_page_element">
<div class="content">
<#if posts?? && posts.content?size gt 0>
<#include "module/post-entry.ftl">
<#if posts.totalPages gt 1>
<@paginationTag method="search" page="${posts.number}" total="${posts.totalPages}" display="3" keyword="${keyword!}">
<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>
<#else>
<div class="post">
<h3 class="page-title">没有找到任何东西!</h3>
</div>
</#if>
</div>
</div>
</div>
<@footer></@footer>