mirror of
https://github.com/halo-dev/theme-earth.git
synced 2025-11-30 01:02:18 +08:00
feat: add display site stats support
This commit is contained in:
@@ -36,7 +36,7 @@
|
||||
</div>
|
||||
<div class="relative mt-6 flex-1 px-4 sm:px-6">
|
||||
<div class="absolute inset-0 px-4 sm:px-6">
|
||||
<div class="flex h-full flex-col items-center gap-4">
|
||||
<div class="flex h-full flex-col items-center gap-4" th:with="stats = ${siteStatsFinder.getStats()}">
|
||||
<div class="relative h-24 w-24">
|
||||
<img th:src="${site.logo}" th:alt="${site.title}" class="h-full w-full rounded-full" />
|
||||
<span
|
||||
@@ -53,20 +53,20 @@
|
||||
</div>
|
||||
<div class="grid grid-cols-4 gap-5">
|
||||
<div class="inline-flex flex-col items-center">
|
||||
<span class="text-xl font-medium tabular-nums text-gray-900">97</span
|
||||
><span class="text-xs font-light text-gray-600">文章数</span>
|
||||
<span class="text-xl font-medium tabular-nums text-gray-900" th:text="${stats.post}"></span>
|
||||
<span class="text-xs font-light text-gray-600">文章数</span>
|
||||
</div>
|
||||
<div class="inline-flex flex-col items-center">
|
||||
<span class="text-xl font-medium tabular-nums text-gray-900">18</span
|
||||
><span class="text-xs font-light text-gray-600">分类数</span>
|
||||
<span class="text-xl font-medium tabular-nums text-gray-900" th:text="${stats.category}"></span>
|
||||
<span class="text-xs font-light text-gray-600">分类数</span>
|
||||
</div>
|
||||
<div class="inline-flex flex-col items-center">
|
||||
<span class="text-xl font-medium tabular-nums text-gray-900">117</span
|
||||
><span class="text-xs font-light text-gray-600">评论数</span>
|
||||
<span class="text-xl font-medium tabular-nums text-gray-900" th:text="${stats.comment}"></span>
|
||||
<span class="text-xs font-light text-gray-600">评论数</span>
|
||||
</div>
|
||||
<div class="inline-flex flex-col items-center">
|
||||
<span class="text-xl font-medium tabular-nums text-gray-900">92392</span
|
||||
><span class="text-xs font-light text-gray-600">访问量</span>
|
||||
<span class="text-xl font-medium tabular-nums text-gray-900" th:text="${stats.visit}"> </span>
|
||||
<span class="text-xs font-light text-gray-600">访问量</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="grid grid-cols-6 items-center gap-5">
|
||||
|
||||
Reference in New Issue
Block a user