perf(profile): 添加标签数量统计项

This commit is contained in:
nineya 2023-12-01 13:48:29 +08:00
parent 7a331658a6
commit f5c5481955
2 changed files with 6 additions and 0 deletions

View File

@ -609,6 +609,8 @@ spec:
label: 文章数量 label: 文章数量
- value: 'category' - value: 'category'
label: 分类数量 label: 分类数量
- value: 'tag'
label: 标签数量
- value: 'comment' - value: 'comment'
label: 评论数量 label: 评论数量
- value: 'upvote' - value: 'upvote'

View File

@ -33,6 +33,10 @@
<p class="heading">分类</p> <p class="heading">分类</p>
<p class="value" th:text="${stats.category}"></p> <p class="value" th:text="${stats.category}"></p>
</div> </div>
<div th:case="tag">
<p class="heading">标签</p>
<p class="value" th:with="tags = ${tagFinder.listAll()}" th:text="${#lists.size(tags)}"></p>
</div>
<div th:case="*"> <div th:case="*">
<p class="heading">文章</p> <p class="heading">文章</p>
<p class="value" th:text="${stats.post}"></p> <p class="value" th:text="${stats.post}"></p>