Skip to content

Commit f8baa0c

Browse files
author
Tim Bannister
committed
Ready Landscape shortcode for vanilla Docsy
Move the shortcode support for the CNCF landscape shortcode. This readies us to make the site align with vanilla Docsy.
1 parent ebb553a commit f8baa0c

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)