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.htmlpull/43395/head
parent
a0a4f553c0
commit
fe706baae5
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue