From 9ab976ccf34aee89ea064ec79f8e4ac14133ff2a Mon Sep 17 00:00:00 2001 From: Eltrac Date: Thu, 6 Nov 2025 11:32:27 +0800 Subject: feat: slight adjustments to stats page 1. remove stats table title since the page title is already clear 2. remove cards count (which is abandoned) and featured posts count 3. format word count number --- layouts/_partials/stats/stats-table.html | 8 +------- layouts/stats.html | 1 - 2 files changed, 1 insertion(+), 8 deletions(-) (limited to 'layouts') diff --git a/layouts/_partials/stats/stats-table.html b/layouts/_partials/stats/stats-table.html index ed529533..e4a7e389 100644 --- a/layouts/_partials/stats/stats-table.html +++ b/layouts/_partials/stats/stats-table.html @@ -30,7 +30,7 @@ {{- range .Site.RegularPages -}} {{- $words = add $words .WordCount -}} {{- end -}} - {{ $words }} + {{ lang.FormatNumber 0 $words }} @@ -41,16 +41,10 @@ {{ len .Site.Taxonomies.categories }} - 卡片数量 - {{ len (where .Site.RegularPages "Section" "cards") }} 小说数量 {{ len (where .Site.RegularPages "Section" "fictions") }} - - 书评数量 {{ len (where .Site.RegularPages "Section" "library") }} - 精选文章数量 - {{ len (where .Site.RegularPages ".Params.featured" true) }} diff --git a/layouts/stats.html b/layouts/stats.html index 457d9e11..f02b620d 100644 --- a/layouts/stats.html +++ b/layouts/stats.html @@ -3,7 +3,6 @@ {{ partial "header" . }}
-

站点统计

{{ partial "stats/stats-table" . }}
-- cgit v1.2.3