{% macro planet(planet, scale) %} {% if planet.kind == 'picture' %} {% elif planet.kind == 'link' %} {{planet.url}} {% endif %} {% if planet.title %} {{ planet.title }} {% endif %} {% endmacro %}