forked from CGM_Public/pretix_original
Add open graph tags to event pages
This commit is contained in:
@@ -11,6 +11,7 @@
|
|||||||
{% if event.settings.meta_noindex %}
|
{% if event.settings.meta_noindex %}
|
||||||
<meta name="robots" content="noindex, nofollow">
|
<meta name="robots" content="noindex, nofollow">
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{{ block.super }}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
{% block above %}
|
{% block above %}
|
||||||
<script type="text/javascript" src="{% static "pretixpresale/js/ui/iframe.js" %}"></script>
|
<script type="text/javascript" src="{% static "pretixpresale/js/ui/iframe.js" %}"></script>
|
||||||
|
|||||||
@@ -8,6 +8,20 @@
|
|||||||
{% load rich_text %}
|
{% load rich_text %}
|
||||||
{% block title %}{% trans "Presale" %}{% endblock %}
|
{% block title %}{% trans "Presale" %}{% endblock %}
|
||||||
|
|
||||||
|
{% block custom_header %}
|
||||||
|
{{ block.super }}
|
||||||
|
<meta property="og:title" content="{{ ev.name }}" />
|
||||||
|
<meta property="og:description" content="{{ ev.get_date_range_display }}" />
|
||||||
|
{% if event_logo %}
|
||||||
|
<meta property="og:image" content="{{ event_logo|thumb:'5000x120' }}" />
|
||||||
|
{% endif %}
|
||||||
|
<meta property="og:type" content="website" />
|
||||||
|
{% if subevent %}
|
||||||
|
<meta property="og:url" content="{% abseventurl request.event "presale:event.index" subevent=subevent.pk %}" />
|
||||||
|
{% else %}
|
||||||
|
<meta property="og:url" content="{% abseventurl request.event "presale:event.index" %}" />
|
||||||
|
{% endif %}
|
||||||
|
{% endblock %}
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
|
||||||
{% autoescape off %}
|
{% autoescape off %}
|
||||||
|
|||||||
Reference in New Issue
Block a user