{{- $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" .) -}}