mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-09-13 06:05:32 -04:00
move light/dark class from <body>
to <html>
and inline restoration script to (hopefully) improve the white flashes
This commit is contained in:
6
layouts/partials/head/restore-theme.html
Normal file
6
layouts/partials/head/restore-theme.html
Normal file
@@ -0,0 +1,6 @@
|
||||
{{ $themeScript := resources.Get "js/restore-theme.js" | js.Build (dict "target" "es2015" "format" "iife") }}
|
||||
{{ with $themeScript }}
|
||||
<script>
|
||||
{{ .Content | safeJS }}
|
||||
</script>
|
||||
{{ end }}
|
Reference in New Issue
Block a user