mirror of
https://ghfast.top/https://github.com/zsjy/halo-theme-dream2.0-plus.git
synced 2025-03-16 00:49:40 +08:00
优化:重新将阅读改为访问,便于卜算子使用访问次数
This commit is contained in:
parent
054e11f4b8
commit
f135a2ffd4
@ -716,13 +716,13 @@ spec:
|
|||||||
- value: 'category'
|
- value: 'category'
|
||||||
label: 分类数量
|
label: 分类数量
|
||||||
- value: 'tag'
|
- value: 'tag'
|
||||||
label: 标签数量
|
label: 标签数量
|
||||||
- value: 'comment'
|
- value: 'comment'
|
||||||
label: 评论数量
|
label: 评论数量
|
||||||
- value: 'upvote'
|
- value: 'upvote'
|
||||||
label: 点赞数量
|
label: 点赞数量
|
||||||
- value: 'visit'
|
- value: 'visit'
|
||||||
label: 阅读数量
|
label: 访问数量
|
||||||
- $formkit: text
|
- $formkit: text
|
||||||
name: profile_theme_button
|
name: profile_theme_button
|
||||||
label: 侧边栏信息-主题按钮
|
label: 侧边栏信息-主题按钮
|
||||||
|
@ -87,7 +87,7 @@
|
|||||||
<li class="item" th:each="itemData,sindex :${theme.config.sidebar.custom_stats}" th:switch="${itemData.type}">
|
<li class="item" th:each="itemData,sindex :${theme.config.sidebar.custom_stats}" th:switch="${itemData.type}">
|
||||||
<div th:case="visit">
|
<div th:case="visit">
|
||||||
<i class="ri-pie-chart-line"></i>
|
<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>
|
||||||
<div th:case="upvote">
|
<div th:case="upvote">
|
||||||
<i class="ri-thumb-up-line"></i>
|
<i class="ri-thumb-up-line"></i>
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
<nav class="level" th:if="${!#lists.isEmpty(theme.config.sidebar.custom_stats)}">
|
<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:each="item,sindex :${theme.config.sidebar.custom_stats}" class="level-item" th:switch="${item.type}">
|
||||||
<div th:case="visit">
|
<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>
|
<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>
|
||||||
<div th:case="upvote">
|
<div th:case="upvote">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user