Set script in-line with integrity hash

Signed-off-by: Emruz Hossain <hossainemruz@gmail.com>
This commit is contained in:
Emruz Hossain 2024-11-30 06:10:45 +06:00
parent 56787e0963
commit 764a16effc
7 changed files with 363 additions and 61 deletions

View file

@ -11,6 +11,11 @@
<!--================= add analytics if enabled =========================-->
{{- partial "analytics.html" . -}}
{{ with resources.Get "scripts/core/theme-scheme.js" | fingerprint }}
<script integrity="{{.Data.Integrity}}">
{{ .Content | safeJS }}
</script>
{{ end }}
</head>
<body class="type-{{ .Page.Type }} kind-{{ .Page.Kind }}" data-bs-spy="scroll" data-bs-target="#TableOfContents" data-bs-offset="80">