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:
Chris Abraham
2019-10-23 23:02:15 +07:00
committed by Kubernetes Prow Robot
parent 5ab1671aa3
commit 6e2683269a
67 changed files with 85 additions and 7 deletions
+4 -1
View File
@@ -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>