From f9920f6d736754372075c8f1014ab9440e333317 Mon Sep 17 00:00:00 2001
From: Brecht Savelkoul <brecht.savelkoul@alumni.lse.ac.uk>
Date: Fri, 13 Aug 2021 20:50:02 +0000
Subject: [PATCH] Execute darkmode script before first render
---
layouts/404.html | 8 +-------
1 files changed, 1 insertions(+), 7 deletions(-)
diff --git a/layouts/404.html b/layouts/404.html
index 8494910..deec3eb 100644
--- a/layouts/404.html
+++ b/layouts/404.html
@@ -11,12 +11,6 @@
<a href="/">↳ Let's get you home.</a>
</div>
</div>
-
-{{- with resources.Get "darkmode.js" | minify -}}
-<script>
- {{.Content | safeJS }}
-</script>
-{{- end -}}
</body>
-</html>
\ No newline at end of file
+</html>
--
Gitblit v1.10.0