侧边栏位置 标签&统计改为 标签&归档&统计,

赞赏名单新增人数显示,
This commit is contained in:
1152958806@qq.com 2023-07-02 20:28:57 +08:00
parent 38b97475b0
commit 9750770844
6 changed files with 100 additions and 13 deletions

View File

@ -317,7 +317,7 @@ spec:
name: widgets
label: 小部件
value: "profile,wechat,comments,recent-posts,categories,tags-stat"
help: "目前提供的小部件有profile站点资料, wechat微信, recent-posts近期文章, comments最新评论, categories文章分类, tags文章标签, stat统计, tags-stat标签&统计)。你可以随意组合或排序,以逗号隔开。"
help: "目前提供的小部件有profile站点资料, wechat微信, recent-posts近期文章, comments最新评论, categories文章分类, tags文章标签, stat统计, tags-stat标签&归档&统计)。你可以随意组合或排序,以逗号隔开。"
- $formkit: textarea
name: postWidgets
label: 文章页面小部件
@ -458,6 +458,29 @@ spec:
label: 分类数量
value: -1
help: "小于 0 则展示全部分类"
- $formkit: radio
name: tags_switch
label: 标签&归档&统计 (标签按钮开关)
value: true
options:
- label: 显示
value: true
- label: 隐藏
value: false
- $formkit: radio
name: archive_switch
label: 标签&归档&统计 (归档按钮开关)
value: true
options:
- label: 显示
value: true
- label: 隐藏
value: false
- $formkit: number
name: archivesQuantity
label: 归档数量
value: -1
help: "小于 0 则展示全部归档(目前没用等适配)"
- $formkit: number
name: newcommentnumber
label: 评论数量
@ -1112,7 +1135,7 @@ spec:
wxPay:
alipay:
enable_reward_wz:
reward_md_url:
reward_md_url:
children:
- $formkit: radio
name: enable_reward_wz

View File

@ -811,7 +811,7 @@
<ellipse cx="790" cy="307.5" rx="25" ry="25.5" fill="#ffd52b"></ellipse>
<circle r="14" transform="matrix(1 0 0 -1 790 308)" fill="white"></circle>
</svg></div>
<!-- <p id="people">共<b>29</b>人</p> -->
<p id="people"><b>[[${theme.config.aboutReward.reward_list.size()}]]</b></p>
</div>
</div>
<div class="reward-list-all" th:if="${not #lists.isEmpty(theme.config.aboutReward.reward_list)}"

View File

@ -0,0 +1,41 @@
<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<!-- 标签 -->
<th:block th:fragment="archive-contain" >
<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,1000)}, 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>
</html>

View File

@ -12,18 +12,18 @@
</div>
<div class="item-count" th:text="${stats.post}"></div>
</div>
<div class="webinfo-item">
<!-- <div class="webinfo-item">
<div class="webinfo-item-title"><i class="iconfont icon-sliders"></i>
<div class="item-name">分类数 :</div>
</div>
<div class="item-count" th:text="${stats.category}"></div>
</div>
<div class="webinfo-item">
</div> -->
<!-- <div class="webinfo-item">
<div class="webinfo-item-title"><i class="iconfont icon-comment-alt"></i>
<div class="item-name">评论数 :</div>
</div>
<div class="item-count" th:text="${stats.comment}"></div>
</div>
</div> -->
<div class="webinfo-item">
<div class="webinfo-item-title"><i class="iconfont icon-bullseye"></i>
<div class="item-name">访问量 :</div>

View File

@ -6,11 +6,21 @@
<div class="card-widget card-tags card-archives card-webinfo card-allinfo">
<th:block th:replace="~{modules/widgets/aside/contain/tags-contain :: tags-contain}"></th:block>
<hr>
<span th:if="${theme.config.sidebar.tags_switch}">
<th:block th:replace="~{modules/widgets/aside/contain/tags-contain :: tags-contain}" th:if="${theme.config.sidebar.tags_switch}"></th:block>
<th:block th:replace="~{modules/widgets/aside/contain/stat-contain :: stat-contain}"></th:block>
<hr>
</span>
<span th:if="${theme.config.sidebar.archive_switch}">
<th:block th:replace="~{modules/widgets/aside/contain/archive-contain :: archive-contain}" ></th:block>
<hr>
</span>
<th:block th:replace="~{modules/widgets/aside/contain/stat-contain :: stat-contain}" ></th:block>
</div>

View File

@ -37,10 +37,23 @@
<th:block th:each="archive : ${archives.items}">
<li class="card-archive-list-item" th:each="month,monthStat : ${archive.months}">
<a class="card-archive-list-link" th:href="@{'/archives/'+${archive.year}+'/'+${month.month}}"
data-pjax-state="load"><span
class="card-archive-list-date">[[${archive.year}]]-[[${month.month}]]</span>
data-pjax-state="load"><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>
class="card-archive-list-count">[[${month.posts.size()}]]</span>
<span class="card-archive-list-count-unit"></span>
</div>
</a>