File tree Expand file tree Collapse file tree 3 files changed +11
-5
lines changed Expand file tree Collapse file tree 3 files changed +11
-5
lines changed File renamed without changes.
Original file line number Diff line number Diff line change 91
91
< script defer src ="{{ "js /release_binaries.js" | relURL }}"> </ script >
92
92
{{- end -}}
93
93
94
- <!-- Enable zoom-on-click for figures that opt in to this -->
95
- {{- if .HasShortcode "figure" -}}
96
- < script defer src ="{{ "js /zoom.js" | relURL }}"> </ script >
97
- {{- end -}}
98
-
99
94
{{- if eq (lower .Params.cid) "community" -}}
100
95
{{- if eq .Params.community_styles_migrated true -}}
101
96
< link href ="/css/community.css " rel ="stylesheet "> <!-- legacy styles -->
Original file line number Diff line number Diff line change 13
13
{{- if .HasShortcode "cncf-landscape" -}}
14
14
< script src ="https://cdnjs.cloudflare.com/ajax/libs/iframe-resizer/4.3.9/iframeResizer.min.js " integrity ="sha384-hHTwgxzjpO1G1NI0wMHWQYUxnGtpWyDjVSZrFnDrlWa5OL+DFY57qnDWw/5WSJOl " crossorigin ="anonymous "> </ script >
15
15
{{- end -}}
16
+
17
+ {{- if .HasShortcode "figure" -}}
18
+ <!-- Enable zoom-on-click for figures that opt in to this -->
19
+ {{- if hugo.IsProduction -}}
20
+ {{- $zoomJs := resources.Get "js/zoom.js" | minify | fingerprint -}}
21
+ < script defer src ="{{ $zoomJs.RelPermalink }} " integrity ="{{ $zoomJs.Data.Integrity }} " crossorigin ="anonymous "> </ script >
22
+ {{- else -}}
23
+ {{- $zoomJs := resources.Get "js/zoom.js" -}}
24
+ < script defer src ="{{ $zoomJs.RelPermalink }} "> </ script >
25
+ {{- end -}}
26
+ {{- end -}}
You can’t perform that action at this time.
0 commit comments