diff --git a/CHANGELOG.md b/CHANGELOG.md index ad1b1d40c..4885e0877 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,8 @@ Versioning](https://semver.org/spec/v2.0.0.html). ## [4.11.0] - 2025-07-01 +* [PR-535](https://github.com/itk-dev/deltag.aarhus.dk/pull/535) + Use teaser image instead of full image. Supportticket: 373 * [PR-533](https://github.com/itk-dev/deltag.aarhus.dk/pull/533) Show deadline date on hearing teaser instead of startdate - Closes issues #532 * [PR-531](https://github.com/itk-dev/deltag.aarhus.dk/pull/531) diff --git a/web/themes/custom/hoeringsportal/templates/components/base-card.html.twig b/web/themes/custom/hoeringsportal/templates/components/base-card.html.twig index add44999a..7bba0aa75 100644 --- a/web/themes/custom/hoeringsportal/templates/components/base-card.html.twig +++ b/web/themes/custom/hoeringsportal/templates/components/base-card.html.twig @@ -40,8 +40,9 @@ {# Show a header with image if there is a image present for the node/teaser #} {% if image %} {# Get the url and alt text for the image #} - {% set image_url = file_url(image.field_itk_media_image_upload.entity.uri.value) %} - {% set image_alt = file_url(image.field_itk_media_image_upload.entity.entity.alt) %} + {% set image_url = file_url(image.field_itk_media_image_upload.entity.uri.value|image_style('responsive_small_teaser')) %} + {% set image_alt = image.field_itk_media_image_upload.alt %} +