add hidden setting for google_site_verification

This commit is contained in:
Richard Schreiber
2024-05-27 10:50:14 +02:00
parent 77a5113875
commit 7b3ee88adc
2 changed files with 4 additions and 0 deletions
+1
View File
@@ -85,6 +85,7 @@ 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,6 +19,9 @@
{% if social_image %}
<meta property="og:image" content="{{ social_image }}" />
{% endif %}
{% if google_site_verification %}
<meta name="google-site-verification" content="{{ google_site_verification }}" />
{% endif %}
{{ block.super }}
{% endblock %}
{% block above %}