mirror of
https://github.com/pretix/pretix.git
synced 2026-05-06 15:24:02 +00:00
Add open graph tags to event pages
This commit is contained in:
@@ -11,6 +11,7 @@
|
||||
{% if event.settings.meta_noindex %}
|
||||
<meta name="robots" content="noindex, nofollow">
|
||||
{% endif %}
|
||||
{{ block.super }}
|
||||
{% endblock %}
|
||||
{% block above %}
|
||||
<script type="text/javascript" src="{% static "pretixpresale/js/ui/iframe.js" %}"></script>
|
||||
|
||||
@@ -8,6 +8,20 @@
|
||||
{% load rich_text %}
|
||||
{% 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 %}
|
||||
|
||||
{% autoescape off %}
|
||||
|
||||
Reference in New Issue
Block a user