This repository has been archived by the owner on May 15, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
/
article-list.ftl
82 lines (75 loc) · 3.86 KB
/
article-list.ftl
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
<#--
Solo - A beautiful, simple, stable, fast Java blogging system.
Copyright (c) 2010-2018, b3log.org & hacpai.com
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
-->
<div>
<#list articles as article>
<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">
<img src="${article.authorThumbnailURL}" alt="" class="link avatar avatar-image">
</div>
<div class="author-lockup blog-flex1">
<a class="link" href="${servePath}/authors/${article.authorId}" rel="nofollow">${article.authorName}</a>
<span class="in">in</span>
<#list article.articleTags?split(",") as articleTag>
<span class="category-name">
<a class="category-name" rel="tag" href="${servePath}/tags/${articleTag?url('UTF-8')}">
${articleTag}</a>
</span>
</#list>
</div>
</div>
</div>
<span class="pull-right time pc_time">${article.articleCreateDate?string("yyyy-MM-dd")}</span>
</div>
<h1 class="post-index-title"><a itemtype="url" href="${servePath}${article.articlePermalink}">${article.articleTitle}</a></h1>
<div class="post-content-preview article-body">
${article.articleAbstract}
</div>
<div class="topic-footer">
<div class="topic-footer-left">
<span class="pull-left time mobile_time">${article.articleCreateDate?string("yyyy-MM-dd")} | </span>
<span class="tooltipped tooltipped-n" aria-label="${commentCountLabel}">
<i class="icon-comments"></i>
<a href="${servePath}${article.articlePermalink}#comments">
${article.articleCommentCount} ${commentLabel}
</a>
</span>
|
<span class="tooltipped tooltipped-n" aria-label="${viewCountLabel}">
${article.articleViewCount} ${viewLabel}
</span>
</div>
<a class="topic-footer-right" href="${servePath}${article.articlePermalink}">阅读全文</a>
</div>
</article>
</#list>
<#if 0 != paginationPageCount>
<ul class="am-pagination">
<#if 1 < paginationCurrentPageNum>
<li class="am-pagination-prev">
<a class="prev" href="${servePath}${path}?p=${paginationCurrentPageNum-1}">« Prev</a>
</li>
</#if>
<#if paginationCurrentPageNum < paginationPageCount>
<li class="am-pagination-next">
<a class="next" href="${servePath}${path}?p=${paginationCurrentPageNum+1}">Next »</a>
</li>
</#if>
</ul>
</#if>
</div>