-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
44 lines (44 loc) · 1.76 KB
/
index.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
#include('./partial/header.html',{home_page:1})
<div class="container">
<div class="row">
<section id="main" class="col-md-8">
#for(article : articles(5).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
<div class="text-center" id="page-footer">
#include('./partial/pagination.html', {pageInfo: articles(5)})
</div>
</section>
#include('./partial/sidebar.html')
</div>
</div>
</div>
#include('./partial/footer.html')