Moved Google Analytics block into head

This commit is contained in:
squidfunk 2019-01-28 11:18:22 +01:00
parent 2f31618d60
commit 5ec6ad2828
2 changed files with 12 additions and 12 deletions

View File

@ -85,6 +85,11 @@
{% for path in config["extra_css"] %}
<link rel="stylesheet" href="{{ path | url }}">
{% endfor %}
{% block analytics %}
{% if config.google_analytics %}
{% include "partials/integrations/analytics.html" %}
{% endif %}
{% endblock %}
{% block extrahead %}{% endblock %}
</head>
{% if palette.primary or palette.accent %}
@ -211,10 +216,5 @@
<script src="{{ path | url }}"></script>
{% endfor %}
{% endblock %}
{% block analytics %}
{% if config.google_analytics %}
{% include "partials/integrations/analytics.html" %}
{% endif %}
{% endblock %}
</body>
</html>

View File

@ -173,6 +173,13 @@
<link rel="stylesheet" type="text/css" href="{{ path | url }}" />
{% endfor %}
<!-- Analytic scripts -->
{% block analytics %}
{% if config.google_analytics %}
{% include "partials/integrations/analytics.html" %}
{% endif %}
{% endblock %}
<!-- Custom front matter -->
{% block extrahead %}{% endblock %}
</head>
@ -378,12 +385,5 @@
<script src="{{ path | url }}"></script>
{% endfor %}
{% endblock %}
<!-- Analytic scripts -->
{% block analytics %}
{% if config.google_analytics %}
{% include "partials/integrations/analytics.html" %}
{% endif %}
{% endblock %}
</body>
</html>