From e636d182a8f1c5cff710c6fdd2e64ad10b4a7f7a Mon Sep 17 00:00:00 2001 From: Joshua Seigler Date: Thu, 26 Jun 2025 19:41:09 -0400 Subject: [PATCH] remove dark/light preference script --- site/_includes/-darklight.js | 4 ---- site/_includes/base.njk | 1 - 2 files changed, 5 deletions(-) delete mode 100644 site/_includes/-darklight.js diff --git a/site/_includes/-darklight.js b/site/_includes/-darklight.js deleted file mode 100644 index f8b1780..0000000 --- a/site/_includes/-darklight.js +++ /dev/null @@ -1,4 +0,0 @@ -const savedTheme = localStorage.getItem('theme'); -if (savedTheme != null) { - document.body.setAttribute("data-theme", savedTheme); -} diff --git a/site/_includes/base.njk b/site/_includes/base.njk index 2f23131..c05a9b2 100644 --- a/site/_includes/base.njk +++ b/site/_includes/base.njk @@ -32,7 +32,6 @@ title: Joshua's Homepage - {% include "-header.njk" %} {{ content | safe }} {% include "-footer.njk" %}