forked from xzhuz/halo-theme-xue
-
Notifications
You must be signed in to change notification settings - Fork 0
/
categories.ftl
43 lines (43 loc) · 2.28 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
<#include "module/macro.ftl">
<@layout title="${settings.categories_title! 'Categories'} | ${options.blog_title!}">
<main class="mx-auto" id="container">
<header class="bg-gray-900 table fade-down relative w-full opacity-95 z-10 h-1/2">
<#if settings.categories_patternimg?? && settings.categories_patternimg!=''>
<div class="cover-bg bottom-0 left-0 right-0 top-0 opacity-30 absolute">
<img src="${settings.categories_patternimg!}"
class="h-full w-full left-0 object-cover absolute top-0 dark:filter-60 no-zoom"
alt="${settings.categories_title!'分类列表'}">
</div>
<#else>
<div class="placeholder-bg">
</div>
</#if>
<div class="h-96 align-middle table-cell relative w-full index flex justify-center">
<h2 class="text-white mb-5 mt-4 leading-loose relative w-full text-4xl text-center dark:text-gray-300">
${settings.categories_title!'分类列表'}
<@categoryTag method="list">
<sup>${categories?size}</sup>
</@categoryTag>
</h2>
<#-- <hr class="text-center bg-red-300 h-0.5 border-none w-20 mx-auto -mt-5 mb-3"/>-->
</div>
</header>
<div
class="mx-auto px-10 my-16 max-w-5xl tracking-wider md:leading-relaxed sm:leading-normal fade-up">
<h2 class="dark:text-gray-300 my-4">分类</h2>
<p class="flex flex-row justify-start flex-wrap">
<@categoryTag method="list">
<#if categories?? && categories?size gt 0>
<#list categories as category>
<a href="${category.fullPath}" class="bg-gray-200 hover:shadow-md hover:text-white hover:bg-red-400 dark:bg-gray-600 dark:text-gray-300 dark:hover:bg-red-400 dark:hover:shadow-md dark:hover:text-white mt-2 mb-2 mr-2 block py-0 px-4 rounded leading-10 h-10 text-gray-800 no-underline " style="text-decoration: none !important;">
${category.name} <span class="ml-4">${category.postCount!}</span>
</a>
</#list>
</#if>
</@categoryTag>
</p>
<h2 class="my-4 dark:text-gray-300 hidden md:block">云</h2>
<div id="categoryCloud" class="card-content jqcloud jqcloud-hg w-full h-72 hidden md:block"></div>
</div>
</main>
</@layout>