Skip to content

Commit

Permalink
Merge pull request #143 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 9ae28b4 + 3301d7d commit 381f0ea
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.6.5] - 2024-03-18

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

## [1.6.4] - 2023-10-23

- TMS-970: Add image meta to content-columns component
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 Sara Hilden
* Description: Tampere Multisite Sara Hilden Theme
* Version: 1.6.3
* Version: 1.6.5
* Author: Geniem
* Author URI: https://geniem.fi
* Template: tms-theme-base
Expand Down

0 comments on commit 381f0ea

Please sign in to comment.