From 9c224ecd5a6b3f0fecce6f7b16c0edec13f86cda Mon Sep 17 00:00:00 2001 From: Julian Raufelder Date: Wed, 30 Oct 2024 14:55:05 +0100 Subject: [PATCH] Further enhance Plausible --- assets/js/{plausible404eventlistener.js => 404.js} | 0 layouts/404.html | 8 ++++---- layouts/_default/baseof.html | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) rename assets/js/{plausible404eventlistener.js => 404.js} (100%) 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 }} - +