mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
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:
parent
321f0f7932
commit
904b5319b3
1 changed files with 3 additions and 1 deletions
|
@ -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 %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue