Skip to content
Snippets Groups Projects
Commit 7e5b9609 authored by Konstantinos Platis's avatar Konstantinos Platis
Browse files

Fix Article Boxes not getting selected size of CDS images

parent df36cb1b
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
......@@ -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)
......
......@@ -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 %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment