-
Notifications
You must be signed in to change notification settings - Fork 0
/
category.ftl
43 lines (43 loc) · 1.76 KB
/
category.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
<#include "layouts/partials/head.ftl">
<@head title="标签:${category.name} · ${blog_title!}" canonical="${category.fullPath!}" />
<body>
<div class="main animated">
<#include "layouts/partials/nav.ftl">
<#include "layouts/partials/header.ftl">
<div class="content">
<div class="list_with_title">
<div class="listing_title">分类:${category.name}</div>
<div class="listing">
<#list posts.content as post>
<div class="listing_item">
<div class="listing_post">
<a href="${post.fullPath!}">${post.title!}</a>
<div class="post_time"><span class="date">${post.createTime?string('yyyy-MM-dd')}</span></div>
</div>
</div>
</#list>
</div>
</div>
<div class="pagination">
<#if posts.totalPages gt 1>
<@paginationTag method="categoryPosts" page="${posts.number}" total="${posts.totalPages}" display="3" slug="${category.slug!}">
<#if pagination.hasPrev>
<a href="${pagination.prevPageFullPath!}" class="pre">
返回上一页
</a>
</#if>
<#if pagination.hasNext>
<a href="${pagination.nextPageFullPath!}" class="next">
查看下一页
</a>
</#if>
</@paginationTag>
</#if>
</div>
</div>
<a id="back_to_top" href="#" class="back_to_top"><i class="ri-arrow-up-s-line"></i></a>
</div>
<#include "layouts/partials/footer.ftl">
<#include "layouts/partials/js.ftl">
</body>
</html>