We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Current:
{% set headerImage = content.headerImages[0]|default %} {% if not headerImage %} {% set headerImage = { title: 'Placeholder', description: '', thumbnails: { '1190x630': '/bundles/app/images/placeholder/1190x630.svg', '490x575': '/bundles/app/images/placeholder/490x575.svg', '690x420': '/bundles/app/images/placeholder/690x420.svg', } } %} {% endif %} {{ get_image(headerImage, '1190x630', { '(max-width: 575px)': '490x575', '(max-width: 991px)': '690x420', }) }}
Expected:
{% set headerImage = content.headerImages[0]|default %} {% if not headerImage %} {% set headerImage = get_placeholder_image() %} {% endif %} {{ get_image(headerImage, '1190x630', { '(max-width: 575px)': '490x575', '(max-width: 991px)': '690x420', }) }}
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Current:
Expected:
The text was updated successfully, but these errors were encountered: