Merge pull request #25092 from tengqm/fix-shortcode
Use card mode for cncf-landscape shortcode
This commit is contained in:
commit
8a585553e1
|
|
@ -58,9 +58,9 @@ document.addEventListener("DOMContentLoaded", function () {
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
<div id="frameHolder">
|
<div id="frameHolder">
|
||||||
{{ if ( .Get "category" ) }}
|
{{ 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 }}
|
{{ 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 }}
|
{{ end }}
|
||||||
<script src="https://landscape.cncf.io/iframeResizer.js"></script>
|
<script src="https://landscape.cncf.io/iframeResizer.js"></script>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue