mirror of
https://github.com/pretix/pretix.git
synced 2026-05-08 15:44:02 +00:00
Fix og:description field for event series
This commit is contained in:
@@ -27,7 +27,11 @@
|
|||||||
{% block custom_header %}
|
{% block custom_header %}
|
||||||
{{ block.super }}
|
{{ block.super }}
|
||||||
<meta property="og:title" content="{{ ev.name }}" />
|
<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 %}
|
{% if subevent %}
|
||||||
<meta property="og:url" content="{% abseventurl request.event "presale:event.index" subevent=subevent.pk %}" />
|
<meta property="og:url" content="{% abseventurl request.event "presale:event.index" subevent=subevent.pk %}" />
|
||||||
{% else %}
|
{% else %}
|
||||||
|
|||||||
Reference in New Issue
Block a user