Skip to content

Commit

Permalink
Merge pull request #159 from devgeniem/TMS-1017
Browse files Browse the repository at this point in the history
TMS-1017: Add image alt-text to imported news single-article
  • Loading branch information
eebbi authored Mar 18, 2024
2 parents 894987a + bf71471 commit 3232bc1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.MD
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
## [1.18.5] - 2024-03-18

- TMS-1015: Header accessibility fixes
- TMS-1017: Add image alt-text to imported news single-article

## [1.18.4] - 2023-11-21

Expand Down
4 changes: 3 additions & 1 deletion partials/single.dust
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@

{?content.api_image_url}
<div class="entry__figure pt-2 has-text-centered">
<img src="{content.api_image_url|url}" loading="lazy" />
<img src="{content.api_image_url|url}"
{?content.api_image_alt}alt="{content.api_image_alt|attr}"{/content.api_image_alt}
loading="lazy" />
</div>

{>"views/single/single-meta" spacing_class="pt-5 pt-4-desktop pb-5 p-5-tablet" /}
Expand Down

0 comments on commit 3232bc1

Please sign in to comment.