Skip nodes with no image in landing gallery
This commit is contained in:
@@ -111,7 +111,7 @@ header
|
|||||||
section.gallery
|
section.gallery
|
||||||
h2 Gallery
|
h2 Gallery
|
||||||
| {% for n in activity_stream %}
|
| {% 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
|
.thumbnail.expand-image-links
|
||||||
.img-container
|
.img-container
|
||||||
a(href="{{ n.picture.thumbnail('l', api=api) }}", data-node_id="{{ n._id }}")
|
a(href="{{ n.picture.thumbnail('l', api=api) }}", data-node_id="{{ n._id }}")
|
||||||
|
Reference in New Issue
Block a user