halo-theme-hao/templates/modules/widgets/aside/contain/archive-contain.html
UPToZ 9bca332716 修复侧边栏最近发布模块显示与置顶文章冲突的问题
detailed:
1.更新主题版本号为1.0.3-ce。
2.更新主题最低Halo版本要求为>=2.15.0。
3.增加主题问题反馈地址。
4.增加主题协议。
5.修复侧边栏最近发布模块一直显示置顶文章的问题。
2024-06-21 01:03:20 +08:00

37 lines
1.8 KiB
HTML

<!-- 标签 -->
<th:block >
<div class="item-headline"><a class="card-more-btn" href="/archives/" title="查看更多" data-pjax-state=""></a></div>
<ul class="card-archive-list"
th:with="archives = ${postFinder.archives(1,0)}, archivesQuantity = ${#conversions.convert(theme.config.sidebar.archivesQuantity, 'java.lang.Integer')}">
<th:block th:each="archive,archiveStat : ${archives.items}">
<li class="card-archive-list-item"
th:each="month,monthIndex : ${archive.months}"
><a
class="card-archive-list-link" th:href="@{'/archives/'+${archive.year}+'/'+${month.month}}"
data-pjax-state=""><span
class="card-archive-list-date">[[${(month.month=='01') ? '一月' :
(month.month == '02') ? "二月" :
(month.month == '03') ? "三月" :
(month.month == '04') ? "四月" :
(month.month == '05') ? "五月" :
(month.month == '06') ? "六月" :
(month.month == '07') ? "七月" :
(month.month == '08') ? "八月" :
(month.month == '09') ? "九月" :
(month.month == '10') ? "十月" :
(month.month == '11') ? "十一月" :
"十二月"}]] [[${archive.year}]]
</span>
<div class="card-archive-list-count-group"><span
class="card-archive-list-count">[[${month.posts.size()}]]</span><span
class="card-archive-list-count-unit"></span></div>
</a>
</li>
</th:block>
</ul>
</th:block>