static: add plausible
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
40491d8e5c
commit
619e0ac453
|
@ -4,4 +4,7 @@ title = 'Imaginer'
|
||||||
theme = "gadolinium"
|
theme = "gadolinium"
|
||||||
|
|
||||||
[params]
|
[params]
|
||||||
sourceURL = "https://codeberg.org/Imaginer/pages"
|
sourceURL = "https://codeberg.org/Imaginer/pages"
|
||||||
|
customHeadHTML = """
|
||||||
|
<script defer data-domain="imaginer.codeberg.page" src="/js/script.js"></script>
|
||||||
|
"""
|
||||||
|
|
7
static/js/script.js
Normal file
7
static/js/script.js
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
var script = document.createElement('script');
|
||||||
|
script.defer = true;
|
||||||
|
script.src = "https://analytics.projectsegfau.lt/js/script.js";
|
||||||
|
script.dataset.domain = "imaginer.codeberg.page";
|
||||||
|
script.dataset.api = 'https://analytics.projectsegfau.lt/api/event';
|
||||||
|
|
||||||
|
document.getElementsByTagName('head')[0].appendChild(script);
|
Loading…
Reference in a new issue