🔧 Add special list for archives articles show.

This commit is contained in:
凡梦星尘
2022-07-26 21:41:07 +08:00
parent d42375820d
commit af59e93d25
4 changed files with 40 additions and 29 deletions

View File

@@ -8,6 +8,9 @@
{{ $globalVars := newScratch }}
{{ $globalVars.Set "postsCount" (len (where .Page.Site.RegularPages "Section" "in" .Site.Params.mainSections)) }}
{{ range .Site.Params.mainSections }}
{{ $globalVars.Set . (len (where $.Page.Site.RegularPages "Section" .))}}
{{ end }}
{{ $globalVars.Set "catsCount" (len .Site.Taxonomies.categories) }}
{{ $globalVars.Set "tagsCount" (len .Site.Taxonomies.tags) }}