{{- $jsFiles := slice (resources.Get "js/theme-toggle.js") (resources.Get "js/code-copy.js") -}} {{- $js := $jsFiles | resources.Concat "js/tsuki.bundle.js" | js.Build (dict "minify" true) | fingerprint -}} {{- if and (eq .Kind "page") (gt .WordCount 400) (ne .Params.toc false) }} {{- $tocJs := resources.Get "js/toc-active.js" | js.Build (dict "minify" true) | fingerprint -}} {{- end }} {{- $giscus := site.Params.comments.giscus -}} {{- if and (eq .Kind "page") $giscus $giscus.enable (ne .Params.comments false) }} {{- $giscusJs := resources.Get "js/giscus-theme.js" | js.Build (dict "minify" true) | fingerprint -}} {{- end }}