-
Notifications
You must be signed in to change notification settings - Fork 9
/
category.ftl
60 lines (58 loc) · 2.32 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<#include "header.ftl">
<@header title="${category.name} - ${blog_title!}"></@header>
<div class="container-fluid">
<div class="row">
<div class="archive-header">
<span>- Category · ${category.name} -</span>
</div>
</div>
</div>
<div class="container-fluid">
<div class="row">
<div id="main" role="main">
<ul class="post-list clearfix">
<#if posts.content?size gt 0>
<#list posts.content as post>
<li class="post-item grid-item" itemscope itemtype="http://schema.org/BlogPosting">
<a class="post-link" href="${post.fullPath!}">
<h3 class="post-title"><time class="index-time" datetime="${post.createTime}" itemprop="datePublished">${post.createTime?string('MMM d,yyyy')}</time><br>${post.title!}</h3>
<div class="post-meta">
${category.name}
</div>
</a>
</li>
</#list>
<#else >
<br><br>
<h2 class="post-title"><center>(´°̥̥̥̥̥̥̥̥ω°̥̥̥̥̥̥̥̥`) 什么都没有找到唉...</center></h2>
</#if>
</ul>
</div>
</div>
</div>
<div class="container-fluid">
<div class="row">
<#if posts.totalPages gt 1>
<div class="nav-page">
<ol class="page-navigator">
<@paginationTag method="categoryPosts" page="${posts.number}" total="${posts.totalPages}" display="3" slug="${category.slug!}">
<#if pagination.hasPrev>
<li class="prev">
<a href="${pagination.prevPageFullPath!}">«</a>
</li>
</#if>
<li>
<a href="#">${posts.number+1}</a>
</li>
<#if pagination.hasNext>
<li class="next">
<a href="${pagination.nextPageFullPath!}">»</a>
</li>
</#if>
</@paginationTag>
</ol>
</div>
</#if>
</div>
</div>
<#include "footer.ftl">