Skip to content

Commit

Permalink
TMS-1017: Add image alt-text to imported news single-article
Browse files Browse the repository at this point in the history
  • Loading branch information
eebbi committed Mar 8, 2024
1 parent 9da4301 commit 56b5dce
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.MD
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

## [Unreleased]

- TMS-1017: Add image alt-text to imported news single-article

## [1.2.1] - 2024-02-01

- TMS-980: Add redipress_include_search to include component contents in search results
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 56b5dce

Please sign in to comment.