Skip to content

Commit 54bcae4

Browse files
Add custom alt text support to feature image
1 parent b1709fe commit 54bcae4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

partials/feature-image.hbs

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@
88
{{img_url feature_image size="xxl"}} 2000w"
99
sizes="(max-width: 1200px) 100vw, 1120px"
1010
src="{{img_url feature_image size="xl"}}"
11-
alt="{{title}}"
11+
alt="{{#if feature_image_alt}}{{feature_image_alt}}{{else}}{{title}}{{/if}}"
1212
>
1313
{{#if feature_image_caption}}
1414
<figcaption>{{feature_image_caption}}</figcaption>
1515
{{/if}}
1616
</figure>
17-
{{/if}}
17+
{{/if}}

0 commit comments

Comments
 (0)