summaryrefslogtreecommitdiff
path: root/layouts/_shortcodes/postcount.html
diff options
context:
space:
mode:
authorEltrac <hi@guhub.cn>2025-11-27 23:44:05 +0800
committerEltrac <hi@guhub.cn>2025-11-27 23:44:05 +0800
commitd8216497af34e73bb2ab5708c8eb6079c1cfe97f (patch)
tree09261e0a01278316af0a57caac5ca6e3563c7f88 /layouts/_shortcodes/postcount.html
parent2c4f185e1f8147a1d7154491b9846ab7451ba46d (diff)
refactor: count all pages, not just post
Diffstat (limited to 'layouts/_shortcodes/postcount.html')
-rw-r--r--layouts/_shortcodes/postcount.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/_shortcodes/postcount.html b/layouts/_shortcodes/postcount.html
index 68da6893..84c6378f 100644
--- a/layouts/_shortcodes/postcount.html
+++ b/layouts/_shortcodes/postcount.html
@@ -1 +1 @@
-{{ len (where .Site.RegularPages "Section" "posts") }}
+{{ len (where .Site.RegularPages "Section" "!=" "") }}