-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy patharticle-list.ftl
97 lines (89 loc) · 4.31 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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
<#--
Solo - A small and beautiful blogging system written in Java.
Copyright (c) 2010-present, b3log.org
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/>.
-->
<section class="nexmoe-posts" id="brand-waterfall">
<#list articles as article>
<div class="nexmoe-post">
<a href="${servePath}${article.articlePermalink}" title="${article.articleTitle} - ${blogTitle}">
<div class="nexmoe-post-cover mdui-ripple">
<#if article.articlePutTop>
<i class="top iconfont solo-top"></i>
</#if>
<img src="${article.articleImg1URL}" alt="${article.articleTitle}"
data-src="/images/5c3aec85a4343.jpg" class="ls-is-cached lazyloaded index-img">
<h1>${article.articleTitle}</h1>
</div>
</a>
<div class="nexmoe-post-meta">
<span>
<i class="nexmoefont iconfont solo-calendarl"></i>${article.articleUpdateDate?string("yyyy年MM月dd日")}
</span>
<span>
<i class="nexmoefont iconfont solo-heat"></i>
<b class="notb" data-uvstaturl="${servePath}${article.articlePermalink}">${article.articleViewCount}</b> °C
</span>
<#if article.articleCommentCount != 0>
<span>
<i class="nexmoefont iconfont solo-comment"></i>
<b class="notb" data-uvstatcmt="${article.oId}">${article.articleCommentCount}</b>
</span>
</#if>
<#list article.articleTags?split(",") as articleTag>
<#if articleTag_index == 0>
<#if article.category??>
<span>
<a class="nexmoefont iconfont solo-category "
href="${servePath}/category/${article.category.categoryURI}">${article.category.categoryTitle}</a>
</span>
</#if>
</#if>
<span>
<a class="nexmoefont iconfont solo-tag "
href="${servePath}/tags/${articleTag?url('UTF-8')}">${articleTag}</a>
</span>
</#list>
</div>
<article>
<p class="summary">${article.articleAbstractText}</p>
</article>
</div>
</#list>
</section>
<#if 1 < paginationPageCount >
<nav class="nexmoe-page-nav">
<#if 1 != paginationPageNums?first>
<a class="extend prev" rel="prev" href="${servePath}${path}?p=${paginationPreviousPageNum}">
<i class="nexmoefont iconfont solo-left"></i>
</a>
<a class="page-number" href="${servePath}${path}">1</a>
<span class="page-number">…</span>
</#if>
<#list paginationPageNums as paginationPageNum>
<#if paginationPageNum == paginationCurrentPageNum>
<span class="page-number current">${paginationPageNum}</span>
<#else>
<a class="page-number"
href="${servePath}${path}?p=${paginationPageNum}">${paginationPageNum}</a>
</#if>
</#list>
<#if paginationPageNums?last != paginationPageCount>
<span class="page-number">…</span>
<a href="${servePath}${path}?p=${paginationPageCount}"
class="page-number">${paginationPageCount}</a>
<a class="extend next" rel="next" href="${servePath}${path}?p=${paginationNextPageNum}">
<i class="nexmoefont iconfont solo-right"></i>
</a>
</#if>
</nav>
</#if>