From cf91650cc667e46b9843e8a85a66c28c3dbe5d9d Mon Sep 17 00:00:00 2001 From: Cory Dransfeldt Date: Sat, 17 Feb 2024 20:18:56 -0800 Subject: [PATCH] chore: now playing loading changes --- package.json | 2 +- src/_includes/base.liquid | 7 ++-- src/assets/scripts/index.js | 62 ----------------------------- src/assets/scripts/now-playing.js | 33 +++++++++++++++ src/assets/scripts/theme-handler.js | 20 ++++++++++ 5 files changed, 58 insertions(+), 66 deletions(-) delete mode 100644 src/assets/scripts/index.js create mode 100644 src/assets/scripts/now-playing.js create mode 100644 src/assets/scripts/theme-handler.js diff --git a/package.json b/package.json index 3284129c..b8420e2c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "coryd.dev", - "version": "5.9.2", + "version": "5.9.3", "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 dbc0410b..ed73e772 100644 --- a/src/_includes/base.liquid +++ b/src/_includes/base.liquid @@ -116,13 +116,14 @@ - {% capture js %} + {% capture theme %} {% render "../assets/scripts/theme.js" %} {% endcapture %} - + {{ content }} {% capture js %} - {% render "../assets/scripts/index.js" %} + {% render "../assets/scripts/now-playing.js" %} + {% render "../assets/scripts/theme-handler.js" %} {% endcapture %}