Skip to content

Commit

Permalink
TMS-1017: Add image alt-text to imported news single-article (#27)
Browse files Browse the repository at this point in the history
* TMS-1017: Add image alt-text to imported news single-article

* 1.3.2
  • Loading branch information
eebbi authored Mar 18, 2024
1 parent fc13878 commit a07443f
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.3.2] - 2024-03-18

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

## [1.3.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
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 Vapriikki
* Description: Tampere Multisite Vapriikki Theme
* Version: 1.3.1
* Version: 1.3.2
* Author: Geniem
* Author URI: https://geniem.fi
* Template: tms-theme-base
Expand Down

0 comments on commit a07443f

Please sign in to comment.