From 913087c06da615e2a40f33625276ea398247764f Mon Sep 17 00:00:00 2001 From: Eltrac Date: Thu, 27 Nov 2025 23:46:35 +0800 Subject: refactor: update stats table according to new content structure Former-commit-id: 87d8f45bbb20481346ab03d4fe83a52d9b321ba0 --- layouts/_partials/stats/stats-table.html | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/layouts/_partials/stats/stats-table.html b/layouts/_partials/stats/stats-table.html index e4a7e389..cab25629 100644 --- a/layouts/_partials/stats/stats-table.html +++ b/layouts/_partials/stats/stats-table.html @@ -21,13 +21,13 @@ - - + + - + + + + + + + -- cgit v1.2.3
页面总数{{ len .Site.RegularPages }}文章总数{{ len (where .Site.RegularPages "Section" "!=" "") }} 总字数 {{- $words := 0 -}} - {{- range .Site.RegularPages -}} + {{- range (where .Site.RegularPages "Section" "!=" "") -}} {{- $words = add $words .WordCount -}} {{- end -}} {{ lang.FormatNumber 0 $words }} @@ -37,9 +37,15 @@
标签总数 {{ len .Site.Taxonomies.tags }}专栏数量分类数量 {{ len .Site.Taxonomies.categories }}
散文数量{{ len (where .Site.RegularPages "Section" "posts") }}议论数量{{ len (where .Site.RegularPages "Section" "essays") }}
小说数量 {{ len (where .Site.RegularPages "Section" "fictions") }}