2 Star 21 Fork 5

cory_lin/halo-theme-xue-codeyee

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
search.ftl 4.36 KB
一键复制 编辑 原始数据 按行查看 历史
<#include "module/macro.ftl">
<@layout title="${keyword!} - 搜索结果 - ${blog_title!}" keywords="${options.seo_keywords!}" description="${options.seo_description!}">
<main class="mx-auto" id="container">
<header class="bg-cover post-cover">
<#if settings.search_patternimg?? && settings.search_patternimg!=''>
<div class="cover-bg">
<img src="${settings.search_patternimg!}" class="z-auto"
alt="${keyword!}">
</div>
<#else>
<div class="placeholder-bg">
</div>
</#if>
<div class="cover-content">
<!-- 封面内容 -->
<div class="inner flex flex-col justify-center">
<h2 class="cover-title text-base md:text-4xl lg:text-4xl xl:text-5xl">关于「${keyword!}」的搜索结果</h2>
</div>
</div>
</header>
<#if posts?? && posts.content?size gt 0>
<div class="container mx-auto px-4 mt-16 max-w-6xl tracking-wider md:leading-relaxed sm:leading-normal ph-container cn-pd">
<#list posts.content as post>
<a href="${post.fullPath}" class="ah-hf ah-hv">
<span class="ah-dt">${post.createTime?string('MM-dd')}</span>
<span class="ah-tt">${post.title!}</span>
</a>
</#list>
</div>
<#if posts.totalPages gt 1>
<#-- 分页-->
<nav class="pagination flex flex-row justify-center mt-8" role="navigation" aria-label="pagination">
<@paginationTag method="search" page="${posts.number}" total="${posts.totalPages}" display="3" keyword="${keyword}">
<#include "module/pagination.ftl">
</@paginationTag>
</nav>
</#if>
<#else >
<div class="container mx-auto px-4 mt-16 max-w-6xl tracking-wider md:leading-relaxed sm:leading-normal ph-container cn-pd">
<div id="post-list" class="post-list inner">
<div class="">
<!-- search start -->
<form class="s-search">
<label class="sh-lab sh-br">
<input class="sh-ipt" maxlength="30" name="keyword" spellcheck="false"
placeholder="Search" autocomplete="off">
<i class="sh-icon cst-icon icon-search"></i>
</label>
</form>
<!-- search end -->
</div>
<section class="no-results not-found">
<header class="not-found-header">
<h1 class="not-found-title">Sorry! Nothing Found...</h1>
</header><!-- .page-header -->
<div class="page-content">
<#if is_search??>
<div class="sorry">
<p>没有找到你想要的,看看其他的吧。</p>
<div class="sorry-inner">
<ul class="search-no-results">
<@postTag method="latest" top="10">
<#list posts as post>
<li>
<a class="ah-hf ah-hv" href="${post.fullPath!}">
<span class="ah-dt">${post.createTime?string('MM-dd')}</span>
<span class="ah-tt">${post.title!}</span>
</a>
</li>
</#list>
</@postTag>
</ul>
</div>
</div>
<#else>
<p>我们似乎没有找到你想要的东西. 或许你可以搜索一下试试.</p>
</#if>
</div><!-- .page-content -->
</section>
</div>
</div>
</#if>
</main>
</@layout>
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
CSS
1
https://gitee.com/codeyee/halo-theme-xue-codeyee.git
git@gitee.com:codeyee/halo-theme-xue-codeyee.git
codeyee
halo-theme-xue-codeyee
halo-theme-xue-codeyee
master

搜索帮助

A270a887 8829481 3d7a4017 8829481