From 5ec6ad282851f21a56ab3a10687d145ed614ab6f Mon Sep 17 00:00:00 2001 From: squidfunk Date: Mon, 28 Jan 2019 11:18:22 +0100 Subject: [PATCH] Moved Google Analytics block into head --- material/base.html | 10 +++++----- src/base.html | 14 +++++++------- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/material/base.html b/material/base.html index 0092ed244..59d77c89d 100644 --- a/material/base.html +++ b/material/base.html @@ -85,6 +85,11 @@ {% for path in config["extra_css"] %} {% endfor %} + {% block analytics %} + {% if config.google_analytics %} + {% include "partials/integrations/analytics.html" %} + {% endif %} + {% endblock %} {% block extrahead %}{% endblock %} {% if palette.primary or palette.accent %} @@ -211,10 +216,5 @@ {% endfor %} {% endblock %} - {% block analytics %} - {% if config.google_analytics %} - {% include "partials/integrations/analytics.html" %} - {% endif %} - {% endblock %} diff --git a/src/base.html b/src/base.html index 0aeff2600..e28a49101 100644 --- a/src/base.html +++ b/src/base.html @@ -173,6 +173,13 @@ {% endfor %} + + {% block analytics %} + {% if config.google_analytics %} + {% include "partials/integrations/analytics.html" %} + {% endif %} + {% endblock %} + {% block extrahead %}{% endblock %} @@ -378,12 +385,5 @@ {% endfor %} {% endblock %} - - - {% block analytics %} - {% if config.google_analytics %} - {% include "partials/integrations/analytics.html" %} - {% endif %} - {% endblock %}