From 61a4921033bf938e18f6eec8cf45bdb600d96a4f Mon Sep 17 00:00:00 2001 From: Salma Alam-Naylor Date: Thu, 18 Jan 2024 13:52:26 +0000 Subject: [PATCH] Remove monetization tag and spacing stuff --- src/_includes/head_base.html | 13 ++++++------ src/_includes/header.html | 38 +++++++++++++++++++++++++++--------- 2 files changed, 35 insertions(+), 16 deletions(-) diff --git a/src/_includes/head_base.html b/src/_includes/head_base.html index c8a14e07..dc3e30c4 100644 --- a/src/_includes/head_base.html +++ b/src/_includes/head_base.html @@ -29,12 +29,13 @@ - - - + @@ -47,9 +48,7 @@ rel="alternate" type="application/rss+xml" title="RSS Feed for whitep4nth3r.com" - href="https://whitep4nth3r.com/feed.xml" -/> + href="https://whitep4nth3r.com/feed.xml" /> + content="94d7e941da97f60c01de0a2e8983b05fb5194a63bd79cad02f6ef7da26ee87c3" /> diff --git a/src/_includes/header.html b/src/_includes/header.html index 9885aeb6..36139cc4 100644 --- a/src/_includes/header.html +++ b/src/_includes/header.html @@ -1,4 +1,6 @@ -Skip to main content + + Skip to main content +
@@ -57,12 +69,17 @@ ? "header__themeToggle" : "header__themeToggle header__themeToggle--light"; - const newAriaLabel = isDark ? "Change to light theme" : "Change to dark theme"; + const newAriaLabel = isDark + ? "Change to light theme" + : "Change to dark theme"; buttonEl.setAttribute("aria-label", newAriaLabel); } - function calculateSettingAsThemeString({ localStorageTheme, systemSettingDark }) { + function calculateSettingAsThemeString({ + localStorageTheme, + systemSettingDark, + }) { if (localStorageTheme !== null) { return localStorageTheme; } @@ -82,7 +99,10 @@ const localStorageTheme = localStorage.getItem("theme"); const systemSettingDark = window.matchMedia("(prefers-color-scheme: dark)"); - let currentThemeSetting = calculateSettingAsThemeString({ localStorageTheme, systemSettingDark }); + let currentThemeSetting = calculateSettingAsThemeString({ + localStorageTheme, + systemSettingDark, + }); // update on page load updateButton({ buttonEl: button, isDark: currentThemeSetting === "dark" });