Skip to content

Commit

Permalink
Further enhance Plausible
Browse files Browse the repository at this point in the history
  • Loading branch information
SailReal committed Oct 30, 2024
1 parent 82285ba commit 9c224ec
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
File renamed without changes.
8 changes: 4 additions & 4 deletions layouts/404.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{{ define "head" }}
{{ if hugo.IsServer }}
{{ $plausible404eventlistener := resources.Get "js/plausible404eventlistener.js" }}
<script type="text/javascript" src="{{ $plausible404eventlistener.RelPermalink }}"></script>
{{ $404 := resources.Get "js/404.js" }}
<script type="text/javascript" src="{{ $404.RelPermalink }}"></script>
{{ else }}
{{ $plausible404eventlistener := resources.Get "js/plausible404eventlistener.js" | minify | fingerprint }}
<script type="text/javascript" src="{{ $plausible404eventlistener.RelPermalink }}" integrity="{{ $plausible404eventlistener.Data.Integrity }}"></script>
{{ $404 := resources.Get "js/404.js" | minify | fingerprint }}
<script type="text/javascript" src="{{ $404.RelPermalink }}" integrity="{{ $404.Data.Integrity }}"></script>
{{ end }}
{{ end }}
{{ define "main"}}
Expand Down
2 changes: 1 addition & 1 deletion layouts/_default/baseof.html
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,6 @@
{{ $lazysizes := resources.Get "js/lazysizes/lazysizes.min.js" | fingerprint }}
<script type="text/javascript" src="{{ $lazysizes.RelPermalink }}" integrity="{{ $lazysizes.Data.Integrity }}" async></script>

<script defer data-domain="cryptomator.org" src="https://plausible.skymatic.de/js/script.file-downloads.outbound-links.js"></script>
<script defer data-domain="cryptomator.org" src="https://plausible.skymatic.de/js/script.file-downloads.outbound-links.js" integrity="sha384-+tt0STxxWB96REUfXF1ykJzPEC5cT+TVotVR/JnYqAP04zxND4o8a0JcHg+aq46t" crossorigin="anonymous"></script>
</body>
</html>

0 comments on commit 9c224ec

Please sign in to comment.