diff options
-rw-r--r-- | themes/hugo-pt2021/assets/script.js | 1 | ||||
-rw-r--r-- | themes/hugo-pt2021/layouts/_default/baseof.html | 2 | ||||
-rw-r--r-- | themes/hugo-pt2021/layouts/index.html | 2 | ||||
-rw-r--r-- | themes/hugo-pt2021/layouts/partials/head.html | 2 |
4 files changed, 3 insertions, 4 deletions
diff --git a/themes/hugo-pt2021/assets/script.js b/themes/hugo-pt2021/assets/script.js index ae47804..c1086cc 100644 --- a/themes/hugo-pt2021/assets/script.js +++ b/themes/hugo-pt2021/assets/script.js @@ -66,7 +66,6 @@ const D = document, // the old logic also attempted to account for "prefers-color-scheme: // light", but i want the default to be dark unless it is explicitly // overridden. -C.add('dark'); // unconditionally set dark mode if (L && L.theme && L.theme === 'light') { C.remove('dark'); // set light theme } diff --git a/themes/hugo-pt2021/layouts/_default/baseof.html b/themes/hugo-pt2021/layouts/_default/baseof.html index 614edd0..967c783 100644 --- a/themes/hugo-pt2021/layouts/_default/baseof.html +++ b/themes/hugo-pt2021/layouts/_default/baseof.html @@ -1,5 +1,5 @@ <!DOCTYPE html> -<html lang='{{$.Site.LanguageCode}}'> +<html class='dark' lang='{{$.Site.LanguageCode}}'> {{- partial "head.html" . -}} <body> diff --git a/themes/hugo-pt2021/layouts/index.html b/themes/hugo-pt2021/layouts/index.html index 5188e29..ce4303e 100644 --- a/themes/hugo-pt2021/layouts/index.html +++ b/themes/hugo-pt2021/layouts/index.html @@ -1,5 +1,5 @@ <!DOCTYPE html> -<html lang='{{.Site.LanguageCode}}'> +<html class='dark' lang='{{.Site.LanguageCode}}'> {{- partial "head.html" . -}} <body> diff --git a/themes/hugo-pt2021/layouts/partials/head.html b/themes/hugo-pt2021/layouts/partials/head.html index 422347d..29139d5 100644 --- a/themes/hugo-pt2021/layouts/partials/head.html +++ b/themes/hugo-pt2021/layouts/partials/head.html @@ -1,4 +1,4 @@ -<head> +<head class='dark'> <meta charset='utf-8'/> {{/* add go-import meta tag */}} |