-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathcategories.ftl
27 lines (25 loc) · 1.01 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
<#include "module/macro.ftl">
<@layout title="分类列表 - ${blog_title!}">
<main>
<div class="wrap min">
<section class="page-title">
<h1>分类</h1>
<#-- <h1>"${sheet.title!}"</h1>
<span>${sheet.description!}</span> -->
</section>
<section class="post-content">
<@categoryTag method="list">
<#if categories?? && categories?size gt 0>
<#list categories as category>
<#if (category.description == "")>
<li><a href="${category.fullPath!}">${category.name}</a></li>
<#else>
<li><a href="${category.fullPath!}">${category.name}</a> - ${category.description!}</li>
</#if>
</#list>
</#if>
</@categoryTag>
</section>
</div>
</main>
</@layout>