{% macro sha_from_entry(entry) -%} {% if entry.url %} {{entry.sha[0:7]}} {% else %} {{entry.sha[0:7]}} {% endif %} {%- endmacro -%}