From 541663ce0c8eac717a2d2484eb193acdf0e3b21f Mon Sep 17 00:00:00 2001 From: Francesco Siddi Date: Mon, 16 Apr 2018 16:36:03 +0200 Subject: [PATCH] Skip nodes with no image in landing gallery --- src/templates/projects/landing.pug | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/templates/projects/landing.pug b/src/templates/projects/landing.pug index 872deda..c7b9bb2 100644 --- a/src/templates/projects/landing.pug +++ b/src/templates/projects/landing.pug @@ -111,7 +111,7 @@ header section.gallery h2 Gallery | {% for n in activity_stream %} - | {% if n.node_type not in ['comment', 'post'] %} + | {% if n.node_type not in ['comment', 'post'] and n.picture %} .thumbnail.expand-image-links .img-container a(href="{{ n.picture.thumbnail('l', api=api) }}", data-node_id="{{ n._id }}")