Skip to content

Commit 7a9ae55

Browse files
authored
Merge pull request #46780 from sftim/20240611_cncf_shortcode_docsy
Ready Landscape shortcode for vanilla Docsy
2 parents 5bdf3bc + f8baa0c commit 7a9ae55

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

layouts/partials/head.html

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,10 +91,6 @@
9191
<script defer src="{{ "js/release_binaries.js" | relURL }}"></script>
9292
{{- end -}}
9393

94-
{{- if .HasShortcode "cncf-landscape" -}}
95-
<script src="https://cdnjs.cloudflare.com/ajax/libs/iframe-resizer/4.3.9/iframeResizer.min.js" integrity="sha384-hHTwgxzjpO1G1NI0wMHWQYUxnGtpWyDjVSZrFnDrlWa5OL+DFY57qnDWw/5WSJOl" crossorigin="anonymous"></script>
96-
{{- end -}}
97-
9894
<!-- Enable zoom-on-click for figures that opt in to this -->
9995
{{- if .HasShortcode "figure" -}}
10096
<script defer src="{{ "js/zoom.js" | relURL }}"></script>

layouts/partials/hooks/head-end.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,7 @@
99
<script defer src="{{ $sortableTableJs.RelPermalink }}"></script>
1010
{{- end -}}
1111
{{- end -}}
12+
13+
{{- if .HasShortcode "cncf-landscape" -}}
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+
{{- end -}}

0 commit comments

Comments
 (0)