{% macro render_node(node, gap) %} {% if node.__class__.__name__ == "ImageNode" %} {% with this=node.block %} {% include "blocks/gallery-image.html" %} {% endwith %} {% elif node.direction == "row" %}