remove integrity attribute

pull/2/head
Septs 2022-11-29 10:14:30 +08:00
parent 7db164d74d
commit ef7f37960e
No known key found for this signature in database
GPG Key ID: 65144037AFA516E1
2 changed files with 4 additions and 4 deletions

View File

@ -1,4 +1,4 @@
{{- $defines := dict "MEASUREMENT_ID" (jsonify .Site.GoogleAnalytics) -}}
{{- with resources.Get "gtag.ts" | js.Build (dict "defines" $defines) | minify | fingerprint }}
<script async defer src="{{ .Permalink }}" integrity="{{ .Data.Integrity }}"></script>
<script async defer src="{{ .Permalink }}"></script>
{{- end }}

View File

@ -1,11 +1,11 @@
{{- with resources.GetMatch "favicon**" -}}
<link rel="icon" href="{{ .Permalink }}" integrity="{{ .Data.Integrity }}">
<link rel="icon" href="{{ .Permalink }}">
{{- end }}
{{- with resources.Get "main.scss" | toCSS | minify | fingerprint }}
<link rel="stylesheet" href="{{ .Permalink }}" integrity="{{ .Data.Integrity }}">
<link rel="stylesheet" href="{{ .Permalink }}">
{{- end }}
{{- with resources.Get "main.ts" | js.Build | minify | fingerprint }}
<script async defer src="{{ .Permalink }}" integrity="{{ .Data.Integrity }}"></script>
<script async defer src="{{ .Permalink }}"></script>
{{- end }}
{{- if not .Site.IsServer }}
{{- partial "head/google-analytics" . }}