💄 Add support subcategory feature.

This commit is contained in:
elkan1788
2023-06-24 11:08:17 +08:00
parent d44d4c2a79
commit 05dba844d7
15 changed files with 113 additions and 45 deletions

View File

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