Fix missing goatcounter data attribute

This commit is contained in:
daudix
2024-08-29 19:35:11 +03:00
parent 612a0dcda0
commit 86955a7d6c
2 changed files with 10 additions and 4 deletions

View File

@ -131,7 +131,7 @@
{%- if scripts | length > 0 %}
{%- for script in scripts %}
<script type="text/javascript" src="{{ get_url(path=script) | safe }}"></script>
<script type="text/javascript" {% if script == "count.js" %}data-goatcounter="https://{{ config.extra.goatcounter.user }}.{{ config.extra.goatcounter.host | default(value='goatcounter.com') }}/count"{% endif %} src="{{ get_url(path=script) | safe }}"></script>
{%- endfor %}
{%- endif %}