{{- .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 -}} {{ hugo.Generator }} {{- partial "head.html" . }} {{ block "title" . }}{{ .Site.Title }}{{ end }}
{{- partial "header.html" . }}
{{- if ne .Site.Params.sidebar.display "remove" }} {{- partial "sidebar.html" . }} {{- end }}
{{ partial "widgets.html" . }}
{{- block "main" . }}{{- end }} {{- if .IsPage }} {{- partial "comments.html" . }} {{- end }}
{{- partial "scripts" . }}