mirror of
https://github.com/welpo/tabi.git
synced 2026-02-16 08:07:19 +01:00
refactor js
This commit is contained in:
parent
786c2f0943
commit
05a628625c
3 changed files with 15 additions and 5 deletions
|
|
@ -31,8 +31,8 @@
|
|||
{% elif analytics_service == "plausible" %}
|
||||
{% if analytics_id is matching("^pa-[^\.]+$") %}
|
||||
{# Use new script available in Plausible 3.1.0 or later #}
|
||||
<script async src="{% if self_hosted_url %}{{ self_hosted_url ~ '/js/' }}{% else %}https://plausible.io/js/{% endif %}{{ analytics_id }}.js"></script>
|
||||
<script src="{{ get_url(path='js/initializePlausible.min.js', trailing_slash=false) | safe }}" defer="defer"></script>
|
||||
<script defer src="{{ get_url(path='js/initializePlausible.min.js', trailing_slash=false) | safe }}"></script>
|
||||
<script defer src="{% if self_hosted_url %}{{ self_hosted_url ~ '/js/' }}{% else %}https://plausible.io/js/{% endif %}{{ analytics_id }}.js"></script>
|
||||
{% else %}
|
||||
<script
|
||||
defer
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue