Add alt and caption support to feature image

This commit is contained in:
Sodbileg Gansukh 2021-07-08 13:19:04 +08:00
parent 7522cc070c
commit 912129b0cd
6 changed files with 26 additions and 16 deletions

View file

@ -12,7 +12,7 @@ Re-usable card for linking to posts
{{img_url feature_image size="xl"}} 2000w"
sizes="(max-width: 1000px) 400px, 700px"
src="{{img_url feature_image size="m"}}"
alt="{{title}}"
alt="{{#if feature_image_alt}}{{feature_image_alt}}{{else}}{{title}}{{/if}}"
/>
{{/if}}
<div class="gh-card-content">