{{ if .Site.Params.mermaid.enable }} {{ end }} {{ $jsBase := resources.Get "js/base.js" }} {{ $jsAnchor := resources.Get "js/anchor.js" }} {{ $jsSearch := resources.Get "js/search.js" | resources.ExecuteAsTemplate "js/search.js" .Site.Home }} {{ $jsMermaid := resources.Get "js/mermaid.js" | resources.ExecuteAsTemplate "js/mermaid.js" . }} {{ if .Site.Params.offlineSearch }} {{ $jsSearch = resources.Get "js/offline-search.js" }} {{ end }} {{ $js := (slice $jsBase $jsAnchor $jsSearch $jsMermaid) | resources.Concat "js/main.js" }} {{ if .Site.IsServer }} {{ else }} {{ $js := $js | minify | fingerprint }} {{ end }} {{ with .Site.Params.prism_syntax_highlighting }} {{ end }} {{ partial "hooks/body-end.html" . }}