{{- $themeToggle := resources.Get "js/theme-toggle.js" | js.Build (dict "minify" true) | fingerprint -}}
{{- if eq .Kind "page" }}
{{- $codeCopy := resources.Get "js/code-copy.js" | js.Build (dict "minify" true) | fingerprint -}}
{{- end }}
{{- if partial "toc-enabled.html" . }}
{{- $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 }}