14 lines
827 B
HTML
14 lines
827 B
HTML
![]() |
{{/* Use to defind global variables */}}
|
|||
|
|
|||
|
{{- if not hugo.IsExtended }}
|
|||
|
{{- warnf "Hugo NexT 主题使用了 SCSS 框架,请到官方地址下载 Hugo Extended 版本:https://github.com/gohugoio/hugo/releases" -}}
|
|||
|
{{- errorf "Because that use SCSS framework in Hugo NexT, Please download Hugo extended version on offical site: https://github.com/gohugoio/hugo/releases" -}}
|
|||
|
{{- end }}
|
|||
|
|
|||
|
{{- .Scratch.Set "postsCount" (len (where .Page.Site.RegularPages "Section" "in" .Site.Params.mainSections)) -}}
|
|||
|
{{- .Scratch.Set "catsCount" (len .Site.Taxonomies.categories) -}}
|
|||
|
{{- .Scratch.Set "tagsCount" (len .Site.Taxonomies.tags) -}}
|
|||
|
{{- $vendors := .Site.Data.resources.vendors -}}
|
|||
|
{{- $pluginVen := .Site.Params.vendors.plugins -}}
|
|||
|
{{- $pluginCDN := index $vendors $pluginVen -}}
|
|||
|
{{- .Scratch.Set "pluginCDN" $pluginCDN -}}
|