Merge pull request #24014 from Arhell/upd-training

add cncf-landscape shortcode for training page
This commit is contained in:
Kubernetes Prow Robot
2020-11-03 12:38:04 -08:00
committed by GitHub
2 changed files with 6 additions and 3 deletions
+5 -1
View File
@@ -57,7 +57,11 @@ document.addEventListener("DOMContentLoaded", function () {
</script>
{{- end -}}
<div id="frameHolder">
<iframe frameborder="0" id="landscape" scrolling="no" src="" style="width: 1px; min-width: 100%" title="CNCF Landscape"></iframe>
{{ if ( .Get "category" ) }}
<iframe frameborder="0" id="landscape" scrolling="no" src="https://landscape.cncf.io/category={{ .Get "category" }}&format=logo-mode&grouping=category&embed=yes"></iframe>
{{ else }}
<iframe frameborder="0" id="landscape" scrolling="no" src="https://landscape.cncf.io/format=logo-mode;embed=yes" style="width: 1px; min-width: 100%" title="CNCF Landscape"></iframe>
{{ end }}
<script src="https://landscape.cncf.io/iframeResizer.js"></script>
</div>
{{- end -}}