1 Star 0 Fork 4

Halo / halo-theme-anatole

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
search.ftl 1.52 KB
一键复制 编辑 原始数据 按行查看 历史
Ryan Wang 提交于 2022-06-02 15:07 . feat: add post likes support
<#include "./module/page-heading.ftl" />
<@layout.extends name="module/layout.ftl">
<@layout.put block="title">搜索结果:${blog_title!}</@layout.put>
<@layout.put block="content">
<@page_heading title="搜索:${keyword!}" subtitle="${posts.totalElements!} 篇文章" />
<#if posts?? && posts.content?size gt 0>
<div x-data="posts">
<#include "module/post-entry.ftl">
</div>
<#if posts.totalPages gt 1>
<@paginationTag method="search" page="${posts.number?c}" total="${posts.totalPages?c}" display="3" keyword="${keyword!}">
<div class="pagination flex justify-between items-center">
<#if pagination.hasPrev>
<a class="btn" role="navigation" href="${pagination.prevPageFullPath!}">上一页</a>
</#if>
<span class="text-sm">${posts.number+1}/${posts.totalPages!}</span>
<#if pagination.hasNext>
<a class="btn" role="navigation" href="${pagination.nextPageFullPath!}">下一页</a>
</#if>
</div>
</@paginationTag>
</#if>
<#else>
<div class="">
<h3 class="page-title">没有找到任何东西!</h3>
</div>
</#if>
</@layout.put>
<@layout.put block="footer">
<#include "./module/post-likes/scripts.ftl" />
</@layout.put>
</@layout.extends>
CSS
1
https://gitee.com/halo-dev/halo-theme-anatole.git
git@gitee.com:halo-dev/halo-theme-anatole.git
halo-dev
halo-theme-anatole
halo-theme-anatole
master

搜索帮助