halo-theme-Single/tags.ftl

39 lines
1.1 KiB
Plaintext
Raw Normal View History

2022-04-15 13:11:12 +08:00
<#include "header.ftl">
<@head title="标签云 - ${blog_title!}" />
<#--
标签云
@package custom
-->
<main>
<style>
main .tags-list{
display: flex;
flex-wrap: wrap;
}
main .tags-list a{
color: inherit;
border-radius: 2em;
padding: .5em .75em;
margin: 0 .5em .5em 0;
display: inline-block;
transition: border .3s;
border: 1px solid var(--board-border);
}
</style>
<div class="wrap min">
<section class="page-title">
<h2>标签云</h2>
</section>
<section class="page-content">
<@tagTag method="list">
<div class="tags-list">
<#if tags?? && tags?size gt 0>
<#list tags as tag>
2022-05-27 01:33:50 +08:00
<a href="${tag.fullPath!}" title="${tag.postCount!}篇文章"> ${tag.name}(${tag.postCount!})</a>
2022-04-15 13:11:12 +08:00
</#list>
</#if>
</@tagTag>
</section>
</div>
</main>
<#include "footer.ftl">