Docs: Only include Plausible for html, not for epub etc (#107637)

Only include Plausible for html, not for epub etc
This commit is contained in:
Hugo van Kemenade
2023-08-04 21:33:34 +03:00
committed by GitHub
parent 321f0f7932
commit 904b5319b3
+3 -1
View File
@@ -26,7 +26,9 @@
{% endblock %}
{% block extrahead %}
<script defer data-domain="docs.python.org" src="https://plausible.io/js/script.js"></script>
{% if builder == "html" %}
<script defer data-domain="docs.python.org" src="https://plausible.io/js/script.js"></script>
{% endif %}
<link rel="canonical" href="https://docs.python.org/3/{{pagename}}.html" />
{% if builder != "htmlhelp" %}
{% if pagename == 'whatsnew/changelog' and not embedded %}