Fix og:description field for event series

This commit is contained in:
Raphael Michel
2022-07-27 15:10:07 +02:00
parent 8a8171bd24
commit 8cf539a573

View File

@@ -27,7 +27,11 @@
{% block custom_header %}
{{ block.super }}
<meta property="og:title" content="{{ ev.name }}" />
<meta property="og:description" content="{{ ev.get_date_range_display }}" />
{% if request.event.has_subevents and not subevent %}
<meta property="og:description" content="{% trans "Event series" %}" />
{% else %}
<meta property="og:description" content="{{ ev.get_date_range_display }}" />
{% endif %}
{% if subevent %}
<meta property="og:url" content="{% abseventurl request.event "presale:event.index" subevent=subevent.pk %}" />
{% else %}