[Archived] Archived WIP of vielle.dev

Set cookie path to / to stop it bloating the cookie list

vielle.dev c5b7053c c5994737

verified
+2 -2
+1 -1
src/Base.astro
··· 30 30 <title>{title} | vielle.dev</title> 31 31 <script> 32 32 // sets the timezone offset 33 - document.cookie = `timezone=${new Date().toString()}`; 33 + document.cookie = `timezone=${new Date().toString()};path=/`; 34 34 </script> 35 35 <!-- default styles (rem, *) --> 36 36 <style is:global>
+1 -1
src/pages/blog/[id].astro
··· 88 88 89 89 const updateColourScheme = () => { 90 90 root.style.colorScheme = lightMode ? "light" : "dark"; 91 - document.cookie = `colour-mode=${root.style.colorScheme}`; 91 + document.cookie = `colour-mode=${root.style.colorScheme};path=/`; 92 92 93 93 modeToggled[lightMode ? "light" : "dark"].forEach((el) => { 94 94 if (!(el instanceof SVGElement || el instanceof HTMLElement)) return;