-
Notifications
You must be signed in to change notification settings - Fork 24
/
categories.ftl
54 lines (48 loc) · 2 KB
/
categories.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
<#include "layout/_layout.ftl">
<#include "layout/_macro/sidebar.ftl">
<#include "layout/_partials/page-header.ftl">
<@html title="分类 | ${blog_title!}" ogtype="website" url="${categories_url!}"></@html>
<@main>
<div id="content" class="content">
<div id="posts" class="posts-expand">
<div class="post-block page">
<@page_header "分类"></@page_header>
<div class="post-body<#if settings.han!false> han-init-context</#if>">
<div class="category-all-page">
<div class="category-all-title">
<@categoryTag method="list">
<#if categories?? && categories?size gt 0>
目前共计 ${categories?size} 个分类
<#else>
暂无分类
</#if>
</@categoryTag>
</div>
<div class="category-all">
<ul class="category-list">
<@categoryTag method="list">
<#if categories?? && categories?size gt 0>
<#list categories as category>
<li class="category-list-item">
<a class="category-list-link" href="${category.fullPath!}">${category.name}</a>
<span class="category-list-count">${category.postCount!0}</span>
</li>
</#list>
</#if>
</@categoryTag>
</ul>
</div>
</div>
</div>
</div>
</div>
</div>
</@main>
<@sidebar>
<@sidebar_template is_post=false></@sidebar_template>
</@sidebar>
<@footer>
</@footer>
<@button>
<#include "layout/_scripts/pages/post-details.ftl">
</@button>