diff --git a/CHANGELOG.md b/CHANGELOG.md index 24806712fdfcf73c698ced5b832f5bedc8cc95d6..9b44cfa6fc4048aa6ae193d4b6398f2f31b329ac 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [2.7.8] - 17/12/2020 + +- Fix Article Boxes not getting selected size of CDS images + + ## [2.7.7] - 16/12/2020 - Add id attribute in sections that are linked from scrolling menu diff --git a/cern_components.info.yml b/cern_components.info.yml index 764365db25429a8187eb7b676d3df08530e46989..2be421e4a401f3a15fc163727fa1c75861c95a6a 100755 --- a/cern_components.info.yml +++ b/cern_components.info.yml @@ -2,7 +2,7 @@ name: "CERN Components" type: module description: "Provides all the necessary modules regarding CERN Web Components." core: 8.x -version: 2.7.7 +version: 2.7.8 package: CERN Components dependencies: - components:components (>=8.x-1.1-alpha1) diff --git a/patterns/molecules/preview-card/preview-card.html.twig b/patterns/molecules/preview-card/preview-card.html.twig index ea6452254f1d8b8d78d4988141f7f03b5b2df7a6..79b4ec17824175b0da2c6532f2aba178a69a10a0 100755 --- a/patterns/molecules/preview-card/preview-card.html.twig +++ b/patterns/molecules/preview-card/preview-card.html.twig @@ -23,8 +23,7 @@ {% else %} {% if background | render %} {% if 'cds-image' in background|render|render %} - {% set cds_id = background | render | get_tag_attribute('figure', 'id') %} - {% set background_url = '//cds.cern.ch/images/' ~ cds_id ~ '/file?size=medium' %} + {% set background_url = background | render | get_tag_attribute('img', 'src') %} {% else %} {% set background_url = background | render %} {% endif %}