Skip to content

Commit

Permalink
Only include Plausible for html, not for epub etc
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk committed Aug 4, 2023
1 parent 407d7fd commit 04e375f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Doc/tools/templates/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}
Expand Down

0 comments on commit 04e375f

Please sign in to comment.