Use SVGs instead of PNGs in the case studies page (#17095)
* favor svg over png for logos on case studies page * added svgs for all case studies * favor svg over png for logos on case studies page * added svgs for all case studies * duplicating the jd logo so both are svg * switch to svgs in the case studies block on the homepage
This commit is contained in:
committed by
Kubernetes Prow Robot
parent
5ab1671aa3
commit
6e2683269a
@@ -8,7 +8,10 @@
|
||||
<h3>{{ $caseStudiesSection.Title }}</h3>
|
||||
<div id="caseStudiesWrapper">
|
||||
{{ range $caseStudiesPages }}
|
||||
{{ $logo := .Resources.GetMatch "**logo*.png" }}
|
||||
{{ $logo := .Resources.GetMatch "**{feature,logo}*.svg" }}
|
||||
{{ if not $logo }}
|
||||
{{ $logo = .Resources.GetMatch "**logo*.png" }}
|
||||
{{ end }}
|
||||
<div>
|
||||
{{ with $logo }}<img src="{{ .RelPermalink }}" alt="{{ .Title }}">{{ end }}
|
||||
<p>"{{ .Params.quote | truncate 100 }}"</p>
|
||||
|
||||
Reference in New Issue
Block a user