halo-theme-Single/archives.ftl

67 lines
2.8 KiB
Plaintext
Raw Normal View History

2022-04-15 13:11:12 +08:00
<#include "header.ftl">
<@head title="归档 - ${blog_title!}"/>
<main>
<div class="wrap min">
<section class="home-title">
<h1>归档</h1>
2022-05-27 01:33:50 +08:00
</section>
<#--<@categoryTag method="list">
2022-04-15 13:11:12 +08:00
<#list categories as category>
<span><a href="${category.fullPath!}">${category.name!}${category.postCount!}</a></span>
2022-04-10 11:10:56 +08:00
</#list>
2022-04-15 13:11:12 +08:00
</@categoryTag>
</section>
<section class="home-posts">
<@postTag method="archive" type="month">
<div class="post-item">
<#list archives as archive>
<h2>${archive.year?c}-${archive.month?c}</h2>
<ul>
<#list archive.posts?sort_by("createTime")?reverse as post>
<li>
<a href="${post.fullPath!}">${post.title!}</a>
<div class="post-meta">
<time class="date">${post.createTime?string('yyyy-MM-dd')}</time>
<span class="category">
<#list post.categories as category>
<a href="${category.fullPath!}" >
${category.name!}
</a>
</#list>
</span>
<span class="tags">
<#list post.tags as tag>
<a href="${tag.fullPath}" class="tag">
${tag.name}
</a>
</#list>
</span>
<span class="comments">${post.commentCount!}°C</span>
</div>
</li>
</#list>
</ul>
</#list>
</div>
</@postTag>
2022-05-27 01:33:50 +08:00
</section>-->
<section class="home-posts">
<@postTag method="archive" type="month">
<div class="post-item">
<#list archives as archive>
<h2>${archive.year?c}年-${archive.month?c}月</h2>
<ul>
<#list archive.posts?sort_by("createTime")?reverse as post>
<li>
<a href="${post.fullPath!}">${post.title!}</a>
</li>
</#list>
</ul>
</#list>
</div>
</@postTag>
2022-04-15 13:11:12 +08:00
</section>
</div>
</main>
<#include "footer.ftl">