{# TODO turn this in to filters w/in config, this is ridiculous #}
{%- if a.data.type -%}
{{ a.data.type }}
{%- endif -%}
{%- if a.data.type and a.data.title -%}
,
{%- endif -%}
{%- if a.data.title -%}
{%- if a.data.url -%}
{{ a.data.title }}
{%- else -%}
{{ a.data.title }}
{%- endif -%}
{%- endif -%}
{%- if a.data.location -%}
{{ a.data.location }}
{%- endif -%}
{% if a.data.subtext %}
{{ a.data.subtext | safe }}
{% endif %}