Remove flash for dark theme on loading #139

This commit is contained in:
Dmitry Kolosov 2022-02-18 14:40:24 +03:00
parent 5c94f0297f
commit 179923826f
2 changed files with 80 additions and 51 deletions

View file

@ -16,6 +16,23 @@
{{ end -}}
{{ partial "favicons.html" . }}
<style>
body {
visibility: hidden;
opacity: 0;
}
</style>
<noscript>
<style>
body {
visibility: visible;
opacity: 1;
}
</style>
</noscript>
{{ partial "resource.html" (dict "context" . "type" "css" "filename" "css/main.css") }}
{{ if .Site.Params.copyCodeButton | default true }}