diff options
| author | Eltrac <hi@guhub.cn> | 2025-11-27 23:44:05 +0800 |
|---|---|---|
| committer | Eltrac <hi@guhub.cn> | 2025-11-27 23:44:05 +0800 |
| commit | 04a283789b4dc83256ba56e3537b1fdefa685a8f (patch) | |
| tree | 6227178f1a077bb076edd87f8a91c40096123a38 /layouts/_shortcodes/postcount.html | |
| parent | de8f2fea0491998ddb4092f6948ce2646de0a598 (diff) | |
refactor: count all pages, not just post
Former-commit-id: d8216497af34e73bb2ab5708c8eb6079c1cfe97f
Diffstat (limited to 'layouts/_shortcodes/postcount.html')
| -rw-r--r-- | layouts/_shortcodes/postcount.html | 2 |
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" "!=" "") }} |
