Skip nodes with no image in landing gallery

This commit is contained in:
2018-04-16 16:36:03 +02:00
parent 1fb044e7c1
commit 541663ce0c

View File

@@ -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 }}")