💄 Add support subcategory feature.
This commit is contained in:
@@ -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) }}
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
<span class="post-meta-item-text" title="{{ T "PostMeta.comments" }}">
|
||||
{{ print (T "PostMeta.comments") (T "Symbol.colon") }}
|
||||
</span>
|
||||
<span {{ if and .Site.Params.postMeta.comments.enable (eq .Site.Params.postMeta.comments.plugin "waline") }}class="waline-comment-count"{{end}} data-path="{{ .RelPermalink | relLangURL }}">
|
||||
<span id="comments-count" {{ if and .Site.Params.postMeta.comments.enable (eq .Site.Params.postMeta.comments.plugin "waline") }}class="waline-comment-count"{{end}} data-path="{{ .RelPermalink | relLangURL }}">
|
||||
<i class="fa fa-sync fa-spin"></i>
|
||||
</span>
|
||||
</span>
|
||||
Reference in New Issue
Block a user