From 891814d1d6d7753a898971b8b334b8edc0bfa38b Mon Sep 17 00:00:00 2001 From: Chaitanya Date: Tue, 24 Dec 2019 10:37:29 +0530 Subject: [PATCH] Replaced logo names with link titles for images alt text (#16691) Signed-off-by: ChaitanyaKaranam --- layouts/case-studies/list.html | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) 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 }}