forked from halo-dev/halo-theme-hshan
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tag.ftl
43 lines (40 loc) · 2 KB
/
tag.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
<@layout.extends name="module/macro.ftl">
<@layout.put block="title">标签:${tag.name} - ${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.tag_patternimg?? && settings.tag_patternimg!=''>
<div class="cover-bg">
<img src="${settings.tag_patternimg!}" alt="标签:${tag.name}">
</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;">${tag.name}</h1>
</div>
</div>
</header>
<!--文章列表-->
<#if (settings.post_list_style!'standard') == 'standard'>
<#include "module/post-list-style/standard.ftl">
<#elseif settings.post_list_style == 'simple'>
<#include "module/post-list-style/simple.ftl">
<#else>
<#include "module/post-list-style/random-card.ftl">
</#if>
<#if posts.totalPages gt 1>
<@paginationTag method="tagPosts" page="${posts.number}" total="${posts.totalPages}" display="3" slug="${tag.slug!}">
<#include "module/pagination.ftl">
</@paginationTag>
</#if>
</div>
</main>
</div>
</@layout.put>
</@layout.extends>