You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

67 lines
2.8 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

<#include "header.ftl">
<@head title="归档 - ${blog_title!}"/>
<main>
<div class="wrap min">
<section class="home-title">
<h1>归档</h1>
</section>
<#--<@categoryTag method="list">
<#list categories as category>
<span><a href="${category.fullPath!}">${category.name!}${category.postCount!}</a></span>
</#list>
</@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>
</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>
</section>
</div>
</main>
<#include "footer.ftl">