-
Notifications
You must be signed in to change notification settings - Fork 1
/
page-category.html
48 lines (47 loc) · 2.09 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
#include('./partial/header.html', {title: keyword })
<div class="container">
<div class="row">
<section id="main" class="col-md-8">
<div class="kratos-hentry clearfix">
#if(is_empty(articles))
<h1 class="kratos-post-header-title">抱歉,还没有相关文章.</h1>
#else
<h1 class="kratos-post-header-title">${type} : ${keyword}</h1>#end
</div>
#for(article : articles.rows)
<article class="kratos-hentry clearfix">
<div class="kratos-entry-border-new clearfix">
<div class="kratos-entry-thumb-new">
<a href="${permalink()}"><img src="${show_thumb(article)}" /></a>
</div>
<div class="kratos-post-inner-new">
<header class="kratos-entry-header-new">
#for(category : category_list())
<a class="label" href="/category/${category}"><i class="label-arrow"></i>${category}</a>#end
<h2 class="kratos-entry-title-new"><a href="${permalink()}">${title()}</a></h2>
</header>
<div class="kratos-entry-content-new">
<p>${excerpt(110)}...</p>
</div>
</div>
<div class="kratos-post-meta-new">
<span class="visible-lg visible-md visible-sm pull-left">
<a href="${permalink()}"><i class="fa fa-calendar"></i> ${created('yyyy年-MM月-dd日')} </a>
<a href="${permalink()}#comments"><i class="fa fa-commenting-o"></i> ${comments_num('0 条评论', ' %d 条评论')} </a>
</span>
<span class="pull-left">
<a href="${permalink()}"><i class="fa fa-eye"></i> ${views()}次阅读</a>
</span>
<span class="pull-right">
<a class="read-more" href="${permalink()}">阅读全文<i class="fa fa-chevron-circle-right"></i></a>
</span>
</div>
</div>
</article>
#end
</section>
#include('./partial/sidebar.html')
</div>
</div>
</div>
#include('./partial/footer.html')