1 Star 0 Fork 0

Halo / halo-theme-hshan

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
search.ftl 2.94 KB
一键复制 编辑 原始数据 按行查看 历史
Ryan Wang 提交于 2022-05-28 18:57 . refactor: template structure
<@layout.extends name="module/macro.ftl">
<@layout.put block="title">搜索结果:${keyword!} - ${blog_title!}</@layout.put>
<@layout.put block="content">
<div id="page" class="site">
<main class="site-main" id="main">
<div class="site-content">
<!-- 封面 -->
<header class="bg-cover page-header">
<#if settings.searh_patternimg?? && settings.searh_patternimg!=''>
<div class="cover-bg">
<img src="${settings.searh_patternimg!}" alt="${keyword!} " />
</div>
<#else>
<div class="default-cover-bg">
</div>
</#if>
<div class="cover-content">
<div class="inner">
<div class="post-count"></div>
<h1 class="page-title" style="font-size: 46px;">关于「${keyword!}」的搜索结果</h1>
</div>
</div>
</header>
<!-- post-list -->
<#if posts?? && posts.content?size gt 0>
<#if (settings.post_list_style!'standard') == 'standard'>
<#include "module/post-list-style/standard.ftl">
<#elseif settings.post_list_style == 'simple'>
<#include "module/post-list-style/simple.ftl">
<#else>
<#include "module/post-list-style/random-card.ftl">
</#if>
<#if posts.totalPages gt 1>
<@paginationTag method="search" page="${posts.number}" total="${posts.totalPages}" display="3">
<#include "module/pagination.ftl">
</@paginationTag>
</#if>
<#else>
<div id="post-list" class="post-list inner">
<div class="search-box">
<!-- search start -->
<form class="s-search">
<i class="fa fa-search" aria-hidden="true"></i>
<input class="text-input" type="search" name="keyword" placeholder="Search..."
autocomplete="off" required>
</form>
<!-- search end -->
</div>
<#include "module/search-none.ftl" />
</div>
</#if>
</div>
</main>
</div>
</@layout.put>
</@layout.extends>
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/halo-dev/halo-theme-hshan.git
git@gitee.com:halo-dev/halo-theme-hshan.git
halo-dev
halo-theme-hshan
halo-theme-hshan
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891