Fix the dark theme from flashing at you every page load

This commit is contained in:
Bun 2025-07-03 00:19:57 -04:00
parent df4979192e
commit 567b4a64fc
5 changed files with 29 additions and 8 deletions

View file

@ -1,18 +1,23 @@
<!DOCTYPE html>
<html lang="en" data-theme="light" data-sidebar="shown">
<html>
<head>
<html lang="en">
<html data-theme="light">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta charset="UTF-8">
<title>nixfox den</title>
<!-- Stylesheets -->
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=IBM+Plex+Mono">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="/style.css">
<link rel="stylesheet" href="/sidebar.css">
<script type="text/javascript" src="nofade.js"></script>
<title>nixfox den</title>
</head>
<body>
<body class="preload">
{% include "sidebar.html" %}
<button type="button" class="sidebar-toggle" id="sidebar-toggle" aria-pressed="false"></button>

View file

@ -2,7 +2,7 @@
<a href="/" class="sb_img"><img src="https://art.pixilart.com/sr2a62fc9ed2173.png" alt="teto creature"></a>
<button type="button" class="theme-toggle" data-theme-toggle aria-label="Toggle to dark"></button>
<script src="/darkmode.js"></script>
<script src="/darkmode.js"> </script>
<div class="sb_header personal"><b>personal</b></div>
<a href="/blog" class="sb_link pers">📰 blog</a><br>