-
Notifications
You must be signed in to change notification settings - Fork 37
/
artsearch.html
61 lines (61 loc) · 3.17 KB
/
artsearch.html
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
49
50
51
52
53
54
55
56
57
58
59
60
61
#include("./_inc/_layout.html")
#@layout()
#define content()
<div class="layui-col-xs12 layui-col-sm7 layui-col-md8 perfree-content-left">
<div class="article-box">
#articleSearchPage(pageSize=6)
#for(article : articlePage.list)
<div class="layui-card">
<div class="layui-card-body">
#if(option('page_article_thumbnail') == null || option('page_article_thumbnail') == '手动上传缩略图')
#if(article.thumbnail != null)
<div class="article-img">
<img src="#(article.thumbnail ??)" alt="#(article.title ??)" width="100%" height="300px"/>
</div>
#end
#else
#if(article.showImage != null)
<div class="article-img">
<img src="#(article.showImage ??)" alt="#(article.title ??)" width="100%" height="300px"/>
</div>
#end
#end
<div class="article-box-content">
<h2 class="article-title">
<a href="#(WEB_DOMAIN ??)#(article.url ??)">#(article.title ??)</a>
</h2>
<p class="article-content">#maxLength(article.text,100)</p>
<hr class="layui-bg-gray">
<span class="article-msg">
<i class="fa fa-user-o"></i> #(article.user.nickname ??)
<i class="fa fa-eye"></i> #(article.view_count ??)
<i class="fa fa-comment-o"></i> #(article.comment_count ??)
<i class="fa fa-clock-o"></i> #date(article.created, "yyyy-MM-dd")
</span>
</div>
</div>
</div>
#else
<div class="layui-card">
<div class="layui-card-body">
<div class="no-article">
<i class="fa fa-bug" aria-hidden="true"></i> 没找到关于 #(keyword) 的文章,换个关键词试试~
</div>
</div>
</div>
#end
#articleSearchPaginate()
<div class="layui-card">
<div class="layui-card-body">
<div class="perfree-page-box">
#for(page : pages)
<a class="page-item #(page.style)" href="#(WEB_DOMAIN ??)#(page.url ??)">#(page.text ??)</a>
#end
</div>
</div>
</div>
#end
#end
</div>
</div>
#end