分类按文章数量倒序

master
jinqilin721 2020-04-07 12:00:04 +08:00
parent 4abc4fd28c
commit b9a0ddca81
1 changed files with 3 additions and 3 deletions

View File

@ -6,14 +6,14 @@
</h3>
<ul class="menu-list">
<@categoryTag method="list">
<#list categories as category>
<#list categories?sort_by("postCount")?reverse as category>
<li>
<a class="level is-marginless" href="${category.fullPath!}">
<span class="level-start">
<span class="level-item">${category.name}</span>
<span class="level-item">${category.name!}</span>
</span>
<span class="level-end">
<span class="level-item tag">${category.postCount}</span>
<span class="level-item tag">${category.postCount!'0'}</span>
</span>
</a>
</li>