1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-09-13 05:45:31 -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:
2021-12-15 13:49:56 -05:00
parent c2789e24d4
commit 766362a9da
14 changed files with 61 additions and 67 deletions

View File

@@ -7,11 +7,11 @@
{{- partial "functions/prepare-js" . -}}
{{- partial "functions/prepare-css" . -}}
<html lang="{{ .Site.LanguageCode | default "en" }}">
<html lang="{{ .Site.LanguageCode | default "en" }}" class="{{ .Site.Params.Theme.defaultTheme }}">
<head>
{{ partial "head/_head" . }}
</head>
<body class="{{ .Site.Params.Theme.defaultTheme }}">
<body>
{{ partialCached "page/header" . }}
<main>
{{ block "main" . }}{{ end }}