-
Notifications
You must be signed in to change notification settings - Fork 1
/
page-category.html
50 lines (50 loc) · 2.38 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
#include('./header.html', {title: keyword + '下的文章' })
<!-- content srart -->
<div class="am-g am-g-fixed blog-fixed">
<div class="am-u-md-12 am-u-sm-12">
<h2 class="am-margin-top-lg">${type} ${keyword} 下的文章</h2>
#if(is_empty(articles))
<div>
<p>抱歉,还没有相关文章.</p>
</div>
#else
#for(article : articles.rows)
<article class="am-g blog-entry-article">
<div class="am-u-lg-6 am-u-lg-12 am-u-sm-12 blog-entry-text post-preview">
<div class="topic-header">
<div class="pull-left">
<div class="blog-flex-center">
<div class="blog-flex0">
#if(theme_option('logo_url') == "")
<img src="${theme_url('/static/img/logo.png')}" alt="" class="link avatar avatar-image">
#else
<img src="${theme_option('logo_url')}" alt="" class="link avatar avatar-image">
#end
</div>
<div class="author-lockup blog-flex1">
<a class="link" href="/archives">${theme_option('blog_author')}</a>
<span class="in">in</span>
<span class="category-name">
${show_categories()} </span>
</div>
</div>
</div>
<span class="pull-right time pc_time">${created('MMM dd , yyyy')}</span>
</div>
<h1 class="post-index-title"><a target="_blank" itemtype="url" href="${permalink()}">${title()}</a></h1>
<div class="post-content-preview">
${intro(200)}... </div>
<div class="clearfix topic-footer">
<span class="pull-left time mobile_time">${created('MMM dd , yyyy')}</span>
</div>
</article>
#end
<ul class="am-pagination">
#include('./pagination.html', {articles: articles, pos: 'prev', text: '<li class="am-pagination-prev"> « Prev'})</li>
#include('./pagination.html', {articles: articles, pos: 'next', text: '<li class="am-pagination-next"> Next »'})</li>
</ul>
#end
</div>
</div>
<!-- content end -->
#include('./footer.html')