From 8f18105ee7cd6648824c8208b91d20865843ae16 Mon Sep 17 00:00:00 2001 From: Thorge Petersen <petersen@rz.uni-kiel.de> Date: Mon, 20 Jan 2025 10:09:44 +0100 Subject: [PATCH] fix: moved matomo code to scripts block --- ckanext/odsh/templates/base.html | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/ckanext/odsh/templates/base.html b/ckanext/odsh/templates/base.html index 57b9668..c98858e 100644 --- a/ckanext/odsh/templates/base.html +++ b/ckanext/odsh/templates/base.html @@ -2,14 +2,6 @@ {% block scripts %} {% asset 'ckanext-odsh/odsh_base_script' %} -{% endblock scripts %} -{% block styles %} - {{ super() }} - {% asset 'ckanext-odsh/odsh_base_style' %} -{% endblock styles %} - -{% block head_extras %} - {{ super() }} {% if h.odsh_matomo_enabled() %} <!-- Matomo --> <script> @@ -36,6 +28,14 @@ </noscript> <!-- End Matomo Code --> {% endif %} +{% endblock scripts %} +{% block styles %} + {{ super() }} + {% asset 'ckanext-odsh/odsh_base_style' %} +{% endblock styles %} + +{% block head_extras %} + {{ super() }} {% endblock %} {% block bodytag %} data-site-root="{{ h.odsh_public_url() }}" data-locale-root="{{ h.odsh_public_url() }}" {% endblock %} -- GitLab