{# Title tag #}
{% set title = null %}
{% for tag in event.tags %}
{% if tag[0] == 'title' %}
{% set title = tag[1] %}
{% endif %}
{% endfor %}
{% set isEmbed = false %}
{% if embed is defined and embed %}
{% set isEmbed = true %}
{% endif %}
{% include 'partial/_gallery.html.twig' with {event: event, isEmbed: isEmbed} %}
{# Location data #}
{% set location = null %}
{% set geohash = null %}
{% for tag in event.tags %}
{% if tag[0] == 'location' %}
{% set location = tag[1] %}
{% elseif tag[0] == 'g' %}
{% set geohash = tag[1] %}
{% endif %}
{% endfor %}
{% if location or geohash %}
📍
{% if location %}{{ location }}{% endif %}
{% if geohash %}{{ geohash[:6] }}...{% endif %}
{% endif %}
{# Hashtags #}
{% if not isEmbed %}
{% set hashtags = [] %}
{% for tag in event.tags %}
{% if tag[0] == 't' %}
{% set hashtags = hashtags|merge([tag[1]]) %}
{% endif %}
{% endfor %}
{% if hashtags|length > 0 %}
{% for hashtag in hashtags %}
#{{ hashtag }}
{% endfor %}