{{ partial "meta.html" . }} {{- range .AlternativeOutputFormats -}} {{- if eq .Name "markdown" -}} {{- else -}} {{- end -}} {{ end -}} {{ partialCached "utils/css.html" "-" "-" }} {{- if hugo.IsProduction -}} {{- else if (eq hugo.Environment "staging") -}} {{ end }} {{- with site.Params.analytics.marlin -}} {{- $apiKey := "" -}} {{- $endpoint := "" -}} {{- $env := "" -}} {{- if hugo.IsProduction -}} {{- $apiKey = .apiKey.prod -}} {{- $endpoint = .endpoint.prod -}} {{- $env = "prod" -}} {{- else if eq hugo.Environment "staging" -}} {{- $apiKey = .apiKey.stage -}} {{- $endpoint = .endpoint.stage -}} {{- $env = "staging" -}} {{- end -}} {{- if and $apiKey $endpoint -}} {{- end -}} {{- end -}} {{/* preload Roboto Flex as it's a critical font: https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/rel/preload */}} {{ $theme := resources.Get "js/theme.js" | js.Build (dict "minify" true) }} {{ $js := resources.Match "js/src/**.js" | resources.Concat "scripts.js" | js.Build (dict "minify" true "targetPath" "scripts.js") }}