diff --git a/assets/js/plausible404eventlistener.js b/assets/js/404.js similarity index 100% rename from assets/js/plausible404eventlistener.js rename to assets/js/404.js diff --git a/layouts/404.html b/layouts/404.html index a08538c606..b04cbfaba1 100644 --- a/layouts/404.html +++ b/layouts/404.html @@ -1,10 +1,10 @@ {{ define "head" }} {{ if hugo.IsServer }} - {{ $plausible404eventlistener := resources.Get "js/plausible404eventlistener.js" }} - + {{ $404 := resources.Get "js/404.js" }} + {{ else }} - {{ $plausible404eventlistener := resources.Get "js/plausible404eventlistener.js" | minify | fingerprint }} - + {{ $404 := resources.Get "js/404.js" | minify | fingerprint }} + {{ end }} {{ end }} {{ define "main"}} diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 1f90bda1d3..2364dc2a4b 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -86,6 +86,6 @@ {{ $lazysizes := resources.Get "js/lazysizes/lazysizes.min.js" | fingerprint }} - +