{{- /* Set version-aware sidebar menu */ -}} {{- $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 }} {{- /* Validate if current version is latest */ -}} {{- 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 -}} {{- /* Initialize module configuration */ -}} {{- $modules := partial "utilities/InitModules.html" (dict "page" .) -}} {{- $.Scratch.Set "modules" $modules -}} {{- $fullCover := or (or (and .IsHome .Site.Params.home.fullCover) .Page.Params.fullCover) .Site.Params.main.footerBelowFold }} {{- $.Scratch.Set "fullCover" $fullCover -}} {{- /* Define section headings */ -}} {{- $loading := "" -}} {{- if $fullCover }}{{ $loading = .Site.Params.main.loading }}{{ end -}} {{ $sections := partial "utilities/GetSections.html" (dict "page" . "loading" $loading) }} {{- $.Scratch.Set "sections" $sections -}} {{- /* Define main breakpoint */ -}} {{- $.Scratch.Set "breakpoint" (partial "utilities/GetBreakpoint.html") }} {{- /* Define base URL */ -}} {{ $lang := site.LanguageCode | default site.Language.Lang }} {{ $.Scratch.Set "baseURL" (strings.TrimSuffix (printf "%s/" $lang) site.Home.RelPermalink) }}
{{ block "head" . }}{{ end -}} {{- partial "footer/scripts.html" (dict "filename" "js/critical.bundle.js" "match" "js/critical/**.js" "header" true "page" .) -}}