🎨 Finish all baseof display coding.

This commit is contained in:
凡梦星尘
2022-06-09 09:12:22 +08:00
parent 2973eaf85d
commit 3bc7506f36
20 changed files with 262 additions and 94 deletions

View File

@@ -1,5 +1,3 @@
{{ $posts := len (where .Page.Site.RegularPages "Section" "in" .Site.Params.mainSections) }}
{{- .Scratch.Set "posts" $posts -}}
{{- $ms := .Site.Params.menuSets }}
{{- $curP := .Page }}
<nav class="site-nav">
@@ -11,7 +9,7 @@
<a href="{{ .URL }}" class="hvr-icon-pulse {{if $active }} menu-item-active{{ end }}" rel="section">
{{- if $ms.icons }}<i class="fa fa-{{ .Pre }} hvr-icon"></i>{{ end }}{{- .Name }}
{{- if and $ms.badges (eq .Identifier "archives" ) }}
<span class="badge">{{ $posts }}</span>
<span class="badge">{{ $.Scratch.Get "postsCount" }}</span>
{{- end }}
</a>
</li>