-
Notifications
You must be signed in to change notification settings - Fork 7
/
article-list.ftl
64 lines (62 loc) · 2.42 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
<div>
<#list articles as article>
<article class="article">
<div class="article__info">
<div class="article__info--left">
<a class="author" href="${servePath}/authors/${article.authorId}" rel="nofollow">
<img class="author__avatar" src="${article.authorThumbnailURL}" alt="author avatar" />
<span class="author__name">${article.authorName}</span>
</a>
<span class="split">in</span>
<span class="tags">
<#list article.articleTags?split(",") as articleTag>
<a class="tags__name" rel="tag" href="${servePath}/tags/${articleTag?url('UTF-8')}">${articleTag}</a>
</#list>
</span>
</div>
<div class="article__info--right">
<span class="createTime f-web">${article.articleCreateDate?string("yyyy-MM-dd")}</span>
</div>
</div>
<div class="article__intro">
<div class="title">
<a pjax-title="${article.articleTitle}" href="${servePath}${article.articlePermalink}">${article.articleTitle}</a>
<#if article.articlePutTop>
<sup>
${topArticleLabel}
</sup>
</#if>
<#if article.hasUpdated>
<sup>
${updatedLabel}
</sup>
</#if>
</div>
<div class="abstract vditor-reset">${article.articleAbstract}</div>
</div>
<div class="article__visit">
<div class="article__visit--left">
<span class="item--split createTime">${article.articleCreateDate?string("yyyy-MM-dd")}</span>
<span class="item item--split" href="${servePath}${article.articlePermalink}#comments">
<span data-uvstatcmt="${article.oId}">0</span>
${commentLabel}
</span>
<span class="item">
<span data-uvstaturl="${servePath}${article.articlePermalink}">0</span> ${viewLabel}
</span>
</div>
<a class="article__visit--right" href="${servePath}${article.articlePermalink}">阅读全文</a>
</div>
</article>
</#list>
<#if 0 != paginationPageCount>
<div class="pagination">
<#if 1 < paginationCurrentPageNum>
<a class="pagination__item pagination__item--left" href="${servePath}${path}?p=${paginationCurrentPageNum-1}">« Prev</a>
</#if>
<#if paginationCurrentPageNum < paginationPageCount>
<a class="pagination__item pagination__item--right" href="${servePath}${path}?p=${paginationCurrentPageNum+1}">Next »</a>
</#if>
</div>
</#if>
</div>