forked from halo-dev/halo-theme-hshan
-
Notifications
You must be signed in to change notification settings - Fork 0
/
categories.ftl
47 lines (46 loc) · 2.47 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
<@layout.extends name="module/macro.ftl">
<@layout.put block="title">${settings.categories_title!'分类'} - ${blog_title!}</@layout.put>
<@layout.put block="content">
<div id="page" class="site">
<main class="site-main" id="main">
<div class="site-content">
<header class="bg-cover page-header">
<#if settings.categories_patternimg?? && settings.categories_patternimg!=''>
<div class="cover-bg">
<img src="${settings.categories_patternimg!}" alt="${settings.categories_title!'分类'}">
</div>
<#else>
<div class="default-cover-bg">
</div>
</#if>
<div class="cover-content">
<div class="inner">
<div class="post-count"></div>
<h1 class="page-title" style="font-size: 46px;">${settings.categories_title!'分类列表'}</h1>
</div>
</div>
</header>
<div id="post-list" class="post-list inner" style="padding-bottom: 90px;">
<div class="tagcloud tag-page">
<@categoryTag method="list">
<#if categories?? && categories?size gt 0>
<#list categories as category>
<a href="${category.fullPath!}" class="button" data-ajax>
${category.name}
<span aria-hidden="true">
<span class="line left"></span>
<span class="line top"></span>
<span class="line right"></span>
<span class="line bottom"></span>
</span>
</a>
</#list>
</#if>
</@categoryTag>
</div>
</div>
</div>
</main>
</div>
</@layout.put>
</@layout.extends>