Skip to content

Commit

Permalink
Update umima to use cdn (next-theme#638)
Browse files Browse the repository at this point in the history
  • Loading branch information
LeenHawk authored and gtn1024 committed Jul 20, 2023
1 parent 93f03b7 commit f52594f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand Down
2 changes: 1 addition & 1 deletion layout/_third-party/analytics/umami.njk
Original file line number Diff line number Diff line change
@@ -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 %}

0 comments on commit f52594f

Please sign in to comment.