Add a no-featured-image class and give some padding when no value in image field

This commit is contained in:
Benjamin Melançon 2019-08-31 09:04:33 -04:00
parent 48cff3dc53
commit d686009916
2 changed files with 6 additions and 0 deletions

View file

@ -80,6 +80,7 @@ node.isSticky() ? 'is-sticky',
not node.isPublished() ? 'is-unpublished',
view_mode ? view_mode|clean_class,
'clearfix',
content.field_image|render is empty ? 'no-featured-image',
] %}
<article{{ attributes.addClass(classes) }}>