From 422ac5fb797d194dd607bbf3071aee6abd839c60 Mon Sep 17 00:00:00 2001 From: Cory Dransfeldt Date: Sat, 17 Feb 2024 20:02:25 -0800 Subject: [PATCH] fix: theme flash --- package.json | 2 +- src/_includes/base.liquid | 8 ++- src/assets/scripts/index.js | 22 ++----- src/assets/scripts/theme.js | 24 ++++++++ .../2024/adding-a-light-dark-theme-toggle.md | 60 ++++++++++++------- 5 files changed, 78 insertions(+), 38 deletions(-) create mode 100644 src/assets/scripts/theme.js diff --git a/package.json b/package.json index 33f7e325..3284129c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "coryd.dev", - "version": "5.9.1", + "version": "5.9.2", "description": "The source for my personal site. Built using 11ty and hosted on Netlify.", "type": "module", "scripts": { diff --git a/src/_includes/base.liquid b/src/_includes/base.liquid index 0df28be4..dbc0410b 100644 --- a/src/_includes/base.liquid +++ b/src/_includes/base.liquid @@ -104,7 +104,9 @@ {% endif %} - +