-
Notifications
You must be signed in to change notification settings - Fork 1
/
search.ftl
48 lines (43 loc) · 1.22 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
37
38
39
40
41
42
43
44
45
46
47
48
<#include "module/macro.ftl">
<@layout title="搜索 : ${keyword!} | ${blog_title!}" keywords="${keyword!}" description="搜索 : ${keyword!} | ${blog_title!}">
<#-- 当前标签所含文章 -->
<#if (posts.content)?? && posts.content?size gt 0>
<#--文章列表-->
<ul class="tag-preview">
<#list posts.content as post>
<li>
<a href="${post.fullPath!}"> ${post.title!}</a>
</li>
</#list>
</ul>
<#--分页-->
<#include "module/pagination/pagination.ftl">
<@pagination posts=posts/>
<#else>
<h1 class="nothing-find">NOTHING WAS FOUND</h1>
</#if><#-- 当前标签所含文章 end -->
</@layout>
<#-- 样式很少,所以不单独列出css文件 -->
<style>
.tag-preview {
font-size: 1.1em;
padding-left: 1em;
transition: .4s cubic-bezier(0,0,.382,1.618);
}
.tag-preview li {
cursor: pointer;
margin: 10px 0;
list-style: initial !important;
}
.tag-preview a {
text-decoration: none !important;
color: #42b983 !important;
cursor: pointer !important;
}
.nothing-find{
font-weight: 700;
font-size: 200%;
text-align: center;
color: #F14668;
}
</style>