Load CSS on the root page

This applies the background color to the root page and avoids flicker
during the initial page load.
This commit is contained in:
r 2023-09-08 17:15:44 +00:00
parent 426e9ad14f
commit 461908e031
2 changed files with 5 additions and 4 deletions

View file

@ -1,4 +1,4 @@
body { frame, body {
background-color: #d2d2d2; background-color: #d2d2d2;
} }

View file

@ -4,14 +4,15 @@
<head> <head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<link rel="icon" type="image/png" href="/static/favicon.png"> <link rel="icon" type="image/png" href="/static/favicon.png">
<link rel="stylesheet" href="/static/style.css">
<title>{{.Title}}</title> <title>{{.Title}}</title>
</head> </head>
<frameset cols="424px,*"> <frameset cols="424px,*">
<frameset rows="316px,*"> <frameset rows="316px,*">
<frame name="nav" src="/nav"> <frame name="nav" src="/nav" {{if $.Ctx.DarkMode}}class="dark"{{end}}>
<frame name="notification" src="/notifications"> <frame name="notification" src="/notifications" {{if $.Ctx.DarkMode}}class="dark"{{end}}>
</frameset> </frameset>
<frame name="main" src="/timeline/home"> <frame name="main" src="/timeline/home" {{if $.Ctx.DarkMode}}class="dark"{{end}}>
</frameset> </frameset>
</html> </html>
{{end}} {{end}}