{{ partial "meta.html" . }} {{- if hugo.IsProduction -}} {{- else if (eq hugo.Environment "staging") -}} {{ end }} {{ partial "utils/css.html" . }} {{ $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 "params" (dict "apikey" site.Params.algolia.apikey "appid" site.Params.algolia.appid "indexname" site.Params.algolia.indexname ) "targetPath" "scripts.js" ) }} {{ if .Page.Store.Get "hasMermaid" }} {{ $mermaid := resources.Get "js/mermaid.js" | js.Build (dict "minify" true) }} {{ end }}