-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathjournals.ftl
More file actions
48 lines (45 loc) · 1.89 KB
/
journals.ftl
File metadata and controls
48 lines (45 loc) · 1.89 KB
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
<#include "module/macro.ftl">
<@layout title="说说 - ${blog_title!}">
<main>
<div class="wrap min">
<section class="home-title">
<h1>"说说"</h1>
<#-- <span>${category.description!}</span> -->
</section>
<#-- 文章列表 -->
<section class="home-posts">
<#list journals.content as journal>
<div class="post-item">
<div class="post-meta">
<time class="date">${journal.createTime?string["yyyy.MM.dd HH:mm:ss"]!}</time>
<span class="comments">${journal.commentCount!} ℃</span>
</div>
<p> ${journal.content!} </p>
</div>
</#list>
</section>
<#-- 分页 -->
<section class="page-navigator">
<#if journals.totalPages gt 1>
<@paginationTag method="journals" page="${journals.number}" total="${journals.totalPages}" display="3">
<#if pagination.hasPrev>
<a class="extend prev" rel="prev" href="${pagination.prevPageFullPath!}">«</a>
</#if>
<#list pagination.rainbowPages as number>
<#if number.isCurrent>
<span class="page-number current">${number.page!}</span>
<#else>
<a class="page-number" href="${number.fullPath!}">${number.page!}</a>
</#if>
</#list>
<#if pagination.hasNext>
<a class="extend next" rel="next" href="${pagination.nextPageFullPath!}">
»
</a>
</#if>
</@paginationTag>
</#if>
</section>
</div>
</main>
</@layout>