{{ $scripts := resources.Get "/js/main.js" | slice }} {{ $dynamicToTop := resources.Get "/js/dynamicToTop.js" }} {{ $jquery := ` ` }} {{ $lazysizes := ` ` }} {{ $katex := ` ` }} {{ $typeit := ` ` }} {{ $countdown := ` ` }} {{ $metingjs := ` ` }} {{ $jquery | safeHTML }} {{ if .IsPage }} {{ $lazysizes | safeHTML }} {{ if .Scratch.Get "music" }} {{ $metingjs | safeHTML }} {{ end }} {{ if or .Params.math .Site.Params.math }} {{ $katex | safeHTML }} {{ end }} {{ $scripts = $scripts | append $dynamicToTop }} {{ $scripts = $scripts | resources.Concat "/js/vendor_post.js" | resources.Minify }} {{ else }} {{ $scripts = $scripts | resources.Concat "/js/vendor_main.js" | resources.Minify}} {{ end }} {{ $typeitMap := .Scratch.Get "typeitMap" }} {{ if $typeitMap }} {{ $typeit | safeHTML }} {{ $typeitArr := slice }} {{ range $key, $val := $typeitMap }} {{ $typeitArr = $typeitArr | append (slice $val) }} {{ end }} {{ end }} {{ with .Scratch.Get "countdownMap" }} {{ $countdown | safeHTML }} {{ end }} {{ template "_internal/google_analytics_async.html" . }}