Merge pull request #25092 from tengqm/fix-shortcode

Use card mode for cncf-landscape shortcode
This commit is contained in:
Kubernetes Prow Robot 2020-11-18 06:26:05 -08:00 committed by GitHub
commit 8a585553e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -58,9 +58,9 @@ document.addEventListener("DOMContentLoaded", function () {
{{- end -}}
<div id="frameHolder">
{{ 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" style="width: 1px; min-width: 100%"></iframe>
<iframe frameborder="0" id="landscape" scrolling="no" src="https://landscape.cncf.io/category={{ .Get "category" }}&format=card-mode&grouping=category&embed=yes" style="width: 1px; min-width: 100%"></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>
<iframe frameborder="0" id="landscape" scrolling="no" src="https://landscape.cncf.io/format=card-mode;embed=yes" style="width: 1px; min-width: 100%" title="CNCF Landscape"></iframe>
{{ end }}
<script src="https://landscape.cncf.io/iframeResizer.js"></script>
</div>