mirror of
https://ghfast.top/https://github.com/zsjy/halo-theme-dream2.0-plus.git
synced 2025-03-15 11:59:40 +08:00
优化:侧边栏统计-访问数量变更为阅读数量,根据官方定义修改
This commit is contained in:
parent
1c1601abf6
commit
e9f41d7d2c
@ -722,7 +722,7 @@ spec:
|
||||
- value: 'upvote'
|
||||
label: 点赞数量
|
||||
- value: 'visit'
|
||||
label: 访问数量
|
||||
label: 阅读数量
|
||||
- $formkit: text
|
||||
name: profile_theme_button
|
||||
label: 侧边栏信息-主题按钮
|
||||
@ -1258,19 +1258,18 @@ spec:
|
||||
- $formkit: datetime-local
|
||||
name: gray_mode_start_time
|
||||
id: gray_mode_start_time
|
||||
if: $get(enable_gray_mode).value === 'custom'
|
||||
if: $get(enable_gray_mode).value == 'custom'
|
||||
validation: required
|
||||
help: 请选择开始时间,包含开始时间。
|
||||
label: 灰色模式 - 开始时间
|
||||
- $formkit: datetime-local
|
||||
name: gray_mode_end_time
|
||||
if: $get(enable_gray_mode).value === 'custom'
|
||||
if: $get(enable_gray_mode).value == 'custom'
|
||||
validation: required
|
||||
help: 请选择结束时间,结束时间须大于开始时间,不包含结束时间。
|
||||
label: 灰色模式 - 结束时间
|
||||
- $formkit: radio
|
||||
name: enable_busuanzi
|
||||
id: enable_busuanzi
|
||||
label: 开启 busuanzi 访客统计
|
||||
value: true
|
||||
help: '隐藏时不显示统计信息,但依旧会请求 busuanzi 统计访客信息。'
|
||||
@ -1281,18 +1280,6 @@ spec:
|
||||
label: 隐藏
|
||||
- value: false
|
||||
label: 关闭
|
||||
- $formkit: radio
|
||||
name: busuanzi_pv_use_halo
|
||||
if: $get(enable_busuanzi).value === true
|
||||
label: busuanzi 的访问次数显示模式
|
||||
value: busuanzi
|
||||
options:
|
||||
- value: halo
|
||||
label: 使用Halo统计访问次数
|
||||
- value: busuanzi
|
||||
label: 使用busuanzi统计访问次数
|
||||
- value: false
|
||||
label: 不显示访问次数
|
||||
# - $formkit: radio
|
||||
# name: enable_baidu_push
|
||||
# label: 启用百度 URL 自动推送
|
||||
|
@ -22,8 +22,8 @@
|
||||
<span id="busuanzi_container_site_uv" style="display: none">
|
||||
<i class="ri-account-circle-line" aria-hidden="true"></i><span class="stand" id="busuanzi_value_site_uv">0</span>访客
|
||||
</span>
|
||||
<span th:unless="${theme.config.enhance.busuanzi_pv_use_halo == false}" id="busuanzi_container_site_pv" style="display: none">
|
||||
<i class="ri-pie-chart-line" aria-hidden="true"></i><span class="stand" th:id="${theme.config.enhance.busuanzi_pv_use_halo == 'busuanzi' ? 'busuanzi_value_site_pv' : 'halo_value_site_pv'}">[[${stats.visit}]]</span>访问
|
||||
<span id="busuanzi_container_site_pv" style="display: none">
|
||||
<i class="ri-pie-chart-line" aria-hidden="true"></i><span class="stand" id="busuanzi_value_site_pv">0</span>访问
|
||||
</span>
|
||||
</span>
|
||||
</p>
|
||||
|
@ -87,7 +87,7 @@
|
||||
<li class="item" th:each="itemData,sindex :${theme.config.sidebar.custom_stats}" th:switch="${itemData.type}">
|
||||
<div th:case="visit">
|
||||
<i class="ri-pie-chart-line"></i>
|
||||
<span>累计收获 <strong th:text="${stats.visit}"></strong> 次访问</span>
|
||||
<span>累计收获 <strong th:text="${stats.visit}"></strong> 次阅读</span>
|
||||
</div>
|
||||
<div th:case="upvote">
|
||||
<i class="ri-thumb-up-line"></i>
|
||||
|
@ -18,7 +18,7 @@
|
||||
<nav class="level" th:if="${!#lists.isEmpty(theme.config.sidebar.custom_stats)}">
|
||||
<div th:each="item,sindex :${theme.config.sidebar.custom_stats}" class="level-item" th:switch="${item.type}">
|
||||
<div th:case="visit">
|
||||
<p class="heading">访问</p>
|
||||
<p class="heading">阅读</p>
|
||||
<p class="value" th:title="${stats.visit / 10000 > 0} ? ${stats.visit}" th:text="${stats.visit / 1000000 > 0} ? (${#numbers.formatDecimal(stats.visit / 1000000.0,1,1)} + 'bw') : (${stats.visit / 10000 > 0} ? (${#numbers.formatDecimal(stats.visit / 10000.0,1,2)} + 'w') : ${stats.visit})"></p>
|
||||
</div>
|
||||
<div th:case="upvote">
|
||||
|
Loading…
x
Reference in New Issue
Block a user