-
Notifications
You must be signed in to change notification settings - Fork 13
/
page-category.html
61 lines (61 loc) · 3.07 KB
/
page-category.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('./partial/header.html', {title: keyword })
<!-- content -->
<div id="content" class="app-content">
<div id="loadingbar" class="butterbar hide">
<span class="bar"></span>
</div>
<a class="off-screen-toggle hide"></a>
<main class="app-content-body">
<div class="hbox hbox-auto-xs hbox-auto-sm">
<div class="col">
<header class="bg-light lter b-b wrapper-md">
<h1 class="m-n font-thin h3 text-black l-h">${type} ${keyword} 下的文章</h1>
</header>
<div class="wrapper-md">
#if(is_empty(articles))
<p class="m-b-md no_search_result panel"> 没有找到搜索结果,请尝试更换关键词。</p>
#else
<!-- 输出文章 -->
<div class="blog-post">
#for(article : articles(5).rows)
<div class="panel">
<div id="index-post-img">
<a href="${permalink()}">
<div class="item-thumb" style="background-image: url('${show_thumb(article)}')"></div>
</a>
</div>
<div class="wrapper-lg">
<h2 class="m-t-none index-post-title">
<a href="${permalink()}">${title()}</a></h2>
<p class="summary">${intro(66)}...</p>
<div class="line line-lg b-b b-light"></div>
<div class="text-muted">
<i class="fa fa-clock-o text-muted"></i> 发布于 ${created('yyyy-MM-dd')}
<i class="fa fa-eye text-muted"></i> ${article.hits} 次浏览
<a href="${permalink()}/#comments" class="m-l-sm">
<i class="fa fa-comments text-muted"></i> ${article.commentsNum} 条评论
</a>
</div>
</div>
</div>
#end
</div>
<!--分页 按钮-->
<nav class="text-center m-t-lg m-b-lg" role="navigation">
#if (type == '分类')
#call pageNav(articles(5),'<i class="fa fa-chevron-left"></i>','<i class="fa fa-chevron-right"></i>', 'category/' + keyword)
#else
#call pageNav(articles(5),'<i class="fa fa-chevron-left"></i>','<i class="fa fa-chevron-right"></i>', 'search/' + keyword)
#end
</nav>
#end
</div>
</div>
<!-- 右侧栏-->
#include('./partial/right.html')
</div>
</main>
</div>
<!-- /content -->
#include('./partial/footer.html')