-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f75ee7f
commit b160dfe
Showing
3 changed files
with
12 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,22 +21,13 @@ | |
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/css/jetbrains-mono.min.css"> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource/[email protected]/index.min.css"> | ||
|
||
{# Analytics #} | ||
{# Analytics, taken from not-matthias/apollo #} | ||
{% if config.extra.analytics.enabled %} | ||
{% if config.extra.analytics.umami.website_id %} | ||
{% set website_id = config.extra.analytics.umami.website_id %} | ||
{% set host_url = config.extra.analytics.umami.host_url | default(value="https://analytics.eu.umami.is") %} | ||
{% set host_url = config.extra.analytics.umami.host_url | default(value="https://api-gateway.umami.dev/") %} | ||
|
||
<script> | ||
(function () { | ||
var el = document.createElement('script'); | ||
el.setAttribute('src', '/js/imamu.js'); | ||
el.setAttribute('data-website-id', '{{ website_id }}'); | ||
el.setAttribute('data-host-url', '{{ host_url }}'); | ||
document.body.appendChild(el); | ||
})(); | ||
</script> | ||
<script async src="/js/imamu.js" data-website-id="{{ website_id }}" data-host-url="{{ host_url }}"></script> | ||
<script defer src="/js/imamu.js" data-website-id="{{ website_id }}" data-host-url="{{ host_url }}"></script> | ||
{% endif %} | ||
|
||
{% if config.extra.analytics.goatcounter.user %} | ||
|