SRI (Subresource Integrity) #280

Merged
paspo merged 4 commits from paspo/bglug.it:integrity into main 2024-10-27 21:48:58 +00:00
Showing only changes of commit ddb95c4a87 - Show all commits

View File

@ -3,7 +3,12 @@
<title>{{ if .IsHome }}{{ .Site.Title }}{{ else }}{{ .Title }} | {{ .Site.Title }}{{ end }}</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
<link rel="stylesheet" href="{{ $style.RelPermalink }}" />
{{- partial "analytics/google-tag-manager/head.html" . -}}
{{ if hugo.IsDevelopment }}
<link rel="stylesheet" href="{{ $style.RelPermalink }}">
{{ else }}
{{ with $style | minify | fingerprint }}
<link rel="stylesheet" href="{{ .RelPermalink }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous">
{{ end }}
{{ end }}
{{- partial "head/custom.html" . -}}
{{- template "_internal/twitter_cards.html" . -}}