mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Moved Google Analytics block into head
This commit is contained in:
parent
2f31618d60
commit
5ec6ad2828
@ -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>
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user