Execute darkmode script before first render

This commit is contained in:
Brecht Savelkoul
2021-08-13 22:46:00 +02:00
parent b5ed5aa14b
commit 9d47dc942e
5 changed files with 21 additions and 31 deletions

View File

@ -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>
</html>