{% if v.url %}
{% set img %}{{ v.alt }}{% endset %} {% if v.link %}{{ img }}{% else %}{{ img }}{% endif %}
{% endif %}