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