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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -26,7 +26,9 @@
{% endblock %} {% endblock %}
{% block extrahead %} {% block extrahead %}
{% if builder == "html" %}
<script defer data-domain="docs.python.org" src="https://plausible.io/js/script.js"></script> <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" /> <link rel="canonical" href="https://docs.python.org/3/{{pagename}}.html" />
{% if builder != "htmlhelp" %} {% if builder != "htmlhelp" %}
{% if pagename == 'whatsnew/changelog' and not embedded %} {% if pagename == 'whatsnew/changelog' and not embedded %}