add google_site_verification to organizer-page

This commit is contained in:
Richard Schreiber
2024-05-27 10:56:57 +02:00
parent 7b3ee88adc
commit 873e2af128
3 changed files with 6 additions and 3 deletions
-1
View File
@@ -85,7 +85,6 @@ def _default_context(request):
else:
pretix_settings = GlobalSettingsObject().settings
ctx['google_site_verification'] = pretix_settings.get('google_site_verification', as_type=str)
text = pretix_settings.get('footer_text', as_type=LazyI18nString)
link = pretix_settings.get('footer_link', as_type=LazyI18nString)
@@ -19,8 +19,8 @@
{% if social_image %}
<meta property="og:image" content="{{ social_image }}" />
{% endif %}
{% if google_site_verification %}
<meta name="google-site-verification" content="{{ google_site_verification }}" />
{% if event.settings.google_site_verification %}
<meta name="google-site-verification" content="{{ event.settings.google_site_verification }}" />
{% endif %}
{{ block.super }}
{% endblock %}
@@ -12,6 +12,10 @@
<meta name="robots" content="noindex, nofollow">
{% endif %}
<meta property="og:type" content="website" />
{% if organizer.settings.google_site_verification %}
<meta name="google-site-verification" content="{{ organizer.settings.google_site_verification }}" />
{% endif %}
{{ block.super }}
{% endblock %}
{% block above %}