improve: Update alt attributes for images on the front page (#43088)

* improve: Update alt attributes for images on the front page

* case studies image alt attribute

* Update case-studies.html
pull/43395/head
Meenu Yadav 2023-10-09 19:07:45 +05:30 committed by GitHub
parent a0a4f553c0
commit fe706baae5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -8,7 +8,7 @@ It can be given a "image" parameter with a name partially matching a file in the
{{ if $imageName }}{{- template "shortcodes-blocks_getimage" (dict "name" $imageName "ctx" . "target" "feature-image") -}}{{ end }}
{{- $image := $.Scratch.Get "feature-image" -}}
<div class="main-section">
{{ with $image }}<div class="image-wrapper"><img src="{{ .RelPermalink }}" alt="{{ .Title }}"></div>{{ end }}
{{ with $image }}<div class="image-wrapper"><img src="{{ .RelPermalink }}" alt=""></div>{{ end }}
<div class="content">
{{ $.Inner }}
</div>