diff --git a/layouts/case-studies/list.html b/layouts/case-studies/list.html index 97a9c4b4ecf..05aca4ecb19 100644 --- a/layouts/case-studies/list.html +++ b/layouts/case-studies/list.html @@ -23,13 +23,14 @@ {{ $featuredVideos := where .Pages ".Params.video" "!=" nil }} {{ with $featuredVideos }} {{ with index $featuredVideos 0 }} +{{ $altText := .LinkTitle }}

"{{ .Params.quote | html }}"

{{ $img := .Resources.GetMatch "video.png" }} {{ $small := .Resources.GetMatch "**small*.svg" }} - {{ with $small }}{{ .Title }}{{ end }} + {{ with $small }}{{ $altText }}{{ end }}
@@ -66,12 +67,10 @@ {{ end }} {{ define "case-study-featured-block" }} {{ $isForeignLanguage := (ne .page.Lang .ctx.Lang)}} -{{ $logo := .page.Resources.GetMatch "**{feature,logo}*.svg" }} -{{ if not $logo }} - {{ $logo = .page.Resources.GetMatch "**{feature,logo}*.png" }} -{{ end }} +{{ $logo := .page.Resources.GetMatch "**{feature,logo}*.png" }} +{{ $altText := .page.LinkTitle}}
- {{ with $logo }}{{ .Title }}{{ end }} + {{ with $logo }}{{ $altText }}{{ end }}

"{{ .page.Params.quote | html }}"

{{ T "main_read_about"}} {{ .page.LinkTitle }}