From 46bbd1297b9e3241621efcca96b12386be73c7e2 Mon Sep 17 00:00:00 2001 From: Pablo Vazquez Date: Fri, 29 Mar 2019 15:18:49 +0100 Subject: [PATCH] UI Pages: Only show header div if there is a picture. --- src/templates/nodes/custom/page/view_embed.pug | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/templates/nodes/custom/page/view_embed.pug b/src/templates/nodes/custom/page/view_embed.pug index 8f84d64c..8d3bdb4d 100644 --- a/src/templates/nodes/custom/page/view_embed.pug +++ b/src/templates/nodes/custom/page/view_embed.pug @@ -5,14 +5,14 @@ include ../../../mixins/components | {% block bodyclasses %}{% endblock %} | {% block body %} +| {% if node.picture %} .expand-image-links.imgs-fluid - | {% if node.picture %} +jumbotron( "{{ node.name }}", null, "{{ node.picture.thumbnail('h', api=api) }}", "{{ node.url }}") - | {% endif %} +| {% endif %} .container.pb-5 .row