Add option to add robots=noindex meta tag

This commit is contained in:
Raphael Michel
2018-10-03 11:15:59 +02:00
parent d99517c8d1
commit d798da33ef
3 changed files with 9 additions and 0 deletions

View File

@@ -7,6 +7,11 @@
{% block thetitle %}
{% block title %}{% endblock %}{% if url_name != "event.index" %} :: {% endif %}{{ event.name }}
{% endblock %}
{% block custom_header %}
{% if event.settings.meta_noindex %}
<meta name="robots" content="noindex, nofollow">
{% endif %}
{% endblock %}
{% block above %}
<script type="text/javascript" src="{% static "pretixpresale/js/ui/iframe.js" %}"></script>
{% if not event.live %}