1 Star 0 Fork 0

Halo / halo-theme-icarus

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
search.ftl 1.73 KB
一键复制 编辑 原始数据 按行查看 历史
Ryan Wang 提交于 2020-03-14 17:37 . feat: require halo 1.3.0.
<#include "layout/layout.ftl">
<#include "layout/common/article.ftl">
<@layout title="搜索:${keyword} - ${blog_title!}" canonical="${blog_url!}/search?keyword=${keyword}">
<#list posts.content as post>
<@article post,'index','null',true />
</#list>
<#if posts.getTotalPages() gt 0>
<div class="card card-transparent">
<nav class="pagination is-centered" role="navigation" aria-label="pagination">
<@paginationTag method="search" page="${posts.number}" total="${posts.totalPages}" display="3" keyword="${keyword!}">
<div class="pagination-previous<#if pagination.hasPrev><#else > is-invisible is-hidden-mobile</#if>">
<a class="is-flex-grow has-text-black-ter" href="${pagination.prevPageFullPath!}">上一页</a>
</div>
<div class="pagination-next<#if pagination.hasNext><#else > is-invisible is-hidden-mobile</#if>">
<a class="is-flex-grow has-text-black-ter" href="${pagination.nextPageFullPath!}">下一页</a>
</div>
<ul class="pagination-list is-hidden-mobile">
<#list pagination.rainbowPages as number>
<#if number.isCurrent>
<li><a class="pagination-link is-current" href="${number.fullPath!}">${number.page!}</a></li>
<#else>
<li><a class="pagination-link has-text-black-ter" href="${number.fullPath!}">${number.page!}</a></li>
</#if>
</#list>
</ul>
</@paginationTag>
</nav>
</div>
</#if>
</@layout>
1
https://gitee.com/halo-dev/halo-theme-icarus.git
git@gitee.com:halo-dev/halo-theme-icarus.git
halo-dev
halo-theme-icarus
halo-theme-icarus
master

搜索帮助