Update umima to use cdn (#638)

This commit is contained in:
LeenHawk 2023-04-27 00:49:36 +08:00 committed by GitHub
parent 318adc0227
commit 47997153c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -791,6 +791,7 @@ umami:
enable: false
script_url: # https://umami.example.com/script.js
website_id: # <your website id>
host_url: # <your umami site url>
# Plausible Analytics
# See: https://plausible.io/

View File

@ -1,3 +1,3 @@
{%- if theme.umami.enable %}
<script async defer data-website-id="{{ theme.umami.website_id }}" src="{{ theme.umami.script_url }}"></script>
<script async defer data-website-id="{{ theme.umami.website_id }}" src="{{ theme.umami.script_url }}"{% if theme.umami.host_url %} data-host-url="{{ theme.umami.host_url }}"{% endif %}></script>
{%- endif %}