{{- $section := .Section }} {{- $version := partial "utilities/GetVersion.html" (dict "page" . "base" true) -}} {{- $.Scratch.Set "version" $version -}} {{ with partial "utilities/GetMenu" (dict "page" . "version" $version) }}{{ $.Scratch.Set "sidebar" . }}{{ end }} {{- if and site.Params.docs.checkVersion $version -}} {{- if ne $version "latest" -}} {{- if partial "utilities/IsOlder" (dict "current" $version) -}} {{- $.Scratch.Set "pageAlertMsg" (T "newerVersionAlert" site.Title) -}} {{- $.Scratch.Set "pageAlertURL" (or site.Params.docs.latestURL site.baseURL) -}} {{- end -}} {{- end -}} {{- end -}} {{- if and .IsPage (not (in .Site.Params.modules.core "bootstrap")) -}} {{- errorf "Bootstrap is a required module, please add it to 'modules.core' in your site parameters" -}} {{- end -}} {{ block "head" . }}{{ end -}} {{- partial "footer/scripts.html" (dict "filename" "js/critical.bundle.js" "match" "js/critical/**.js" "header" true "page" .) -}}
{{- partial "assets/navbar.html" (dict "page" . "fixed" (string .Site.Params.navigation.fixed) "color" (.Site.Params.navigation.color) "style" (default "light" .Site.Params.navigation.style) "size" (default "md" .Site.Params.navigation.size)) -}}
{{ if .IsHome -}} {{ if .Site.Params.home.fullCover -}}
{{ block "featured" . }}{{ end -}}
{{ else -}}
{{ block "featured" . }}{{ end -}}
{{ block "main" . }}{{ end -}}
{{ if not .Site.Params.main.footerBelowFold }}
{{- partial "footer/social.html" . -}} {{- partial "footer/footer.html" . -}}
{{ end }} {{ end -}} {{ else -}}
{{ block "main" . }}{{ end -}}
{{ if not .Site.Params.main.footerBelowFold }}
{{- partial "footer/social.html" . -}} {{- partial "footer/footer.html" . -}}
{{ end }} {{ end -}}
{{ if and .IsHome .Site.Params.home.fullCover -}}
{{ block "main" . }}{{ end -}}
{{- partial "footer/social.html" . -}} {{- partial "footer/footer.html" . -}}
{{ else if .Site.Params.main.footerBelowFold }}
{{- partial "footer/social.html" . -}} {{- partial "footer/footer.html" . -}}
{{ end }} {{- partial "footer/toast-container.html" . -}} {{- partialCached "footer/scripts.html" (dict "header" false "page" . "core" true) }} {{- $modules := site.Params.modules.optional | intersect .Params.modules -}} {{- range $index, $mod := $modules -}} {{- $filename := printf "js/%s.bundle.js" $mod -}} {{- $match := printf "js/modules/%s/**.js" $mod -}} {{- $skipTemplate := false -}} {{- if reflect.IsSlice site.Params.modules.disableTemplate -}} {{- if in site.Params.modules.disableTemplate $mod}} {{- $skipTemplate = true -}} {{- end -}} {{- end -}} {{- partial "footer/scripts.html" (dict "filename" $filename "match" $match "header" false "skipTemplate" $skipTemplate "page" .) }} {{- end -}}