Commit e140e68 1 parent dfcf427 commit e140e68 Copy full SHA for e140e68
File tree 1 file changed +12
-12
lines changed
www/layouts/partials/head
1 file changed +12
-12
lines changed Original file line number Diff line number Diff line change 1
1
{{ range .Params.JsModules }}
2
2
{{- with resources.Get . }}
3
- <!-- {{- if eq hugo.Environment "development" }} -->
3
+ {{- if eq hugo.Environment "development" }}
4
4
< script src ="{{ relURL .RelPermalink }} " type ="module "> </ script >
5
- <!-- {{- else }} -->
6
- <!-- {{- with . | minify | fingerprint }} -->
7
- <!-- <script src="{{ relURL .RelPermalink }}" integrity="{{- .Data.Integrity }}" crossorigin="anonymous" type="module"></script> -- >
8
- <!-- {{- end }} -->
9
- <!-- {{- end }} -->
5
+ {{- else }}
6
+ {{- with . | minify | fingerprint }}
7
+ < script src ="{{ relURL .RelPermalink }} " integrity ="{{- .Data.Integrity }} " crossorigin ="anonymous " type ="module "> </ script >
8
+ {{- end }}
9
+ {{- end }}
10
10
{{- end }}
11
11
{{ end }}
12
12
13
13
{{ range .Params.JsScripts }}
14
14
{{- with resources.Get . }}
15
- <!-- {{- if eq hugo.Environment "development" }} -->
15
+ {{- if eq hugo.Environment "development" }}
16
16
< script src ="{{ relURL .RelPermalink }} " type ="text/javascript "> </ script >
17
- <!-- {{- else }} -->
18
- <!-- {{- with . | minify | fingerprint }} -->
19
- <!-- <script src="{{ relURL .RelPermalink }}" integrity="{{- .Data.Integrity }}" crossorigin="anonymous" type="text/javascript"></script> -- >
20
- <!-- {{- end }} -->
21
- <!-- {{- end }} -->
17
+ {{- else }}
18
+ {{- with . | minify | fingerprint }}
19
+ < script src ="{{ relURL .RelPermalink }} " integrity ="{{- .Data.Integrity }} " crossorigin ="anonymous " type ="text/javascript "> </ script >
20
+ {{- end }}
21
+ {{- end }}
22
22
{{- end }}
23
23
{{ end }}
You can’t perform that action at this time.
0 commit comments