forked from halo-dev/halo-theme-KeepIt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcategories.ftl
33 lines (33 loc) · 1.6 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
<#include "layouts/_default/baseof.ftl">
<@baseof title="分类目录 | ${blog_title!}" canonical="${categories_url!}">
<!-- Categories Page -->
<div class="post-warp categories">
<h2 class="post-title" style="text-align:right;padding-bottom:2em">- 分类目录 -</h2>
<div class="categories-card">
<@categoryTag method="list">
<#list categories as category>
<div class="card-item">
<div class="categories" >
<a href="${category.fullPath!}"><h3> <i class="iconfont icon-folder" style="padding-right: 3px"></i> ${category.name} </h3> </a>
<@postTag method="listByCategoryId" categoryId="${category.id}">
<#list posts as post>
<#if post_index == 4>
<#break />
</#if>
<article class="archive-item">
<a href="${post.fullPath!}" class="archive-item-link">${post.title!}</a>
</article>
</#list>
<#if posts?size gt 5>
<span class="more-post">
<a href="${category.fullPath!}" class="more-post-link">更多 >></a>
</span>
</#if>
</@postTag>
</div>
</div>
</#list>
</@categoryTag>
</div> <!-- //categories-card -->
</div>
</@baseof>