mirror of
https://github.com/pretix/pretix.git
synced 2026-08-07 10:17:49 +00:00
add google_site_verification to organizer-page
This commit is contained in:
@@ -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 %}
|
||||
|
||||
Reference in New Issue
Block a user