We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2f3c22e commit ac326d2Copy full SHA for ac326d2
1 file changed
layouts/partials/js.html
@@ -11,9 +11,9 @@
11
{{- $processed = $processed | minify -}}
12
{{- $attr := "defer" -}}
13
{{- if strings.HasSuffix . ".sync.js" }}
14
-{{- $attr = "" -}}
+{{- $attr = "" -}}
15
{{- else if strings.HasSuffix . ".async.js" }}
16
-{{- $attr = "async" -}}
+{{- $attr = "async" -}}
17
{{- end -}}
18
-<script src="{{ $processed.Permalink }}" {{ $attr }}></script>
+<script src="{{ $processed.Permalink }}" {{ $attr | safeHTMLAttr }}></script>
19
0 commit comments