Add alt and caption support to feature images (#812)

* Add alt and caption support to feature images

* Add feature image alt support to post card

* Remove three-curlies
This commit is contained in:
Sodbileg Gansukh
2021-07-05 10:59:21 +08:00
committed by GitHub
parent 21bdffbd8a
commit e49664eca4
6 changed files with 16 additions and 7 deletions

View File

@ -14,7 +14,7 @@ which templates loop over to generate a list of posts. --}}
{{img_url feature_image size="xl"}} 2000w"
sizes="(max-width: 1000px) 400px, 800px"
src="{{img_url feature_image size="m"}}"
alt="{{title}}"
alt="{{#if feature_image_alt}}{{feature_image_alt}}{{else}}{{title}}{{/if}}"
loading="lazy"
/>
</a>