{{ $themeJS := resources.Get "js/theme.js" }} {{ $codeCopyJS := resources.Get "js/code-copy.js" }} {{ $menuJS := resources.Get "js/menu.js" }} {{ if .Page.Store.Get "hasMermaid" }} {{ end }} {{ if .HasShortcode "tabs" }} {{ $tabsJS := resources.Get "js/tabs.js" }} {{ end }} {{ $searchJSFile := printf "%s.search.js" .Language.Lang }} {{ $searchJS := resources.Get "js/flexsearch.js" | resources.ExecuteAsTemplate $searchJSFile . }} {{ if hugo.IsProduction }} {{ $searchJS = $searchJS | minify | fingerprint }} {{ end }} {{ if .Page.Params.math }} {{ end }}