diff --git a/Resources/Private/Partials/Teaser.html b/Resources/Private/Partials/Teaser.html index 699d4dbba471b6286894e6e7a743fb6f97ced0c7..f148cd8c5b2e9cb5be7e6860d99dc3de9a3bf713 100644 --- a/Resources/Private/Partials/Teaser.html +++ b/Resources/Private/Partials/Teaser.html @@ -21,7 +21,9 @@ <f:alias map="{singleViewUri: '{f:uri.page(pageUid: \'{newsMetaData.news.uid}\')}'}"> <a href="{singleViewUri}"> - <div class="tx-sgnews-teaser-image tx-sgnews-teaser-image-stretched" style="background-image: url({f:uri.image(image: '{newsMetaData.teaserImageObject}')});"></div> + <f:if condition="{newsMetaData.teaserImageObject}"> + <div class="tx-sgnews-teaser-image tx-sgnews-teaser-image-stretched" style="background-image: url({f:uri.image(image: '{newsMetaData.teaserImageObject}')});"></div> + </f:if> <div class="tx-sgnews-teaser-inner"> <div class="tx-sgnews-teaser-title"> {headerTag -> f:format.raw()} diff --git a/Resources/Private/Templates/SingleView/SingleView.html b/Resources/Private/Templates/SingleView/SingleView.html index 50dfefce21dc2f7c67639d3434ebf0d82b12e579..66f80aec43bc678dade2987637845ed58ad3949b 100644 --- a/Resources/Private/Templates/SingleView/SingleView.html +++ b/Resources/Private/Templates/SingleView/SingleView.html @@ -98,6 +98,7 @@ </f:if> </div> </div> + </div> </section> <section class="content dark-bg"> @@ -136,6 +137,5 @@ </div> </div> </div> - </div> </section> </f:section>