I have a region page_intro
where I display a view, with some CSS on it. When the view is empty (return no result), the region is still displayed (All html code before and after {{ page.page_intro }}
). Is there a way to compltetly remove it when the view is empty ?
template :
{% if page.page_intro %}
{# #page-intro #}
<div id="page-intro" class="clearfix">
<div class="container-fluid">
<div class="row">
{# #page-intro-inside #}
<div id="page-intro-inside" class="col-md-10 col-md-offset-1 clearfix">
{{ page.page_intro }}
</div>
{# EOF: #page-intro-inside #}
</div>
</div>
</div>
{# EOF: #page-intro #}
{% endif %}
I'm on Drupal 8.2.0 version.