From 9d380557e1e11d7ed6a6f9fedbe49ddc9028ae70 Mon Sep 17 00:00:00 2001 From: Richard Schreiber Date: Tue, 28 May 2024 09:18:15 +0200 Subject: [PATCH] SEO improvements - add h1.sr-only if only header-image is used * add hidden h1 with event-title if header-image only * add event-title to alt-attribute of header-image * add hidden setting for google_site_verification --- .../templates/pretixpresale/event/base.html | 15 +++++++++++++-- .../templates/pretixpresale/organizers/base.html | 9 +++++++++ 2 files changed, 22 insertions(+), 2 deletions(-) diff --git a/src/pretix/presale/templates/pretixpresale/event/base.html b/src/pretix/presale/templates/pretixpresale/event/base.html index 2566a5014c..1baeda2350 100644 --- a/src/pretix/presale/templates/pretixpresale/event/base.html +++ b/src/pretix/presale/templates/pretixpresale/event/base.html @@ -19,6 +19,9 @@ {% if social_image %} {% endif %} + {% if event.settings.google_site_verification %} + + {% endif %} {{ block.super }} {% endblock %} {% block above %} @@ -68,15 +71,23 @@ {% block page %}