Skip to content

Commit

Permalink
Merge pull request #168 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 6fb6d6c + 6c6e285 commit 1e68559
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.MD
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

## [Unreleased]

## [1.9.6] - 2024-03-18

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

## [1.9.5] - 2023-11-21

- TMS-935: Archive filter accessibility fixes
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
2 changes: 1 addition & 1 deletion style.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* Theme Name: TMS Theme Taidemuseo
* Description: Tampere Multisite Taidemuseo Theme
* Version: 1.9.5
* Version: 1.9.6
* Author: Geniem
* Author URI: https://geniem.fi
* Template: tms-theme-base
Expand Down

0 comments on commit 1e68559

Please sign in to comment.