mirror of
https://github.com/thiloho/aurora.git
synced 2025-11-22 19:41:35 +01:00
Add ThemeToggle component
This commit is contained in:
@@ -11,4 +11,8 @@ const { title, description } = Astro.props;
|
||||
<title>{title}</title>
|
||||
<meta name="author" content="Your Name" />
|
||||
<meta name="description" content={description} />
|
||||
<script is:inline>
|
||||
const storedTheme = localStorage.getItem("theme");
|
||||
document.documentElement.classList = storedTheme;
|
||||
</script>
|
||||
</head>
|
||||
|
||||
Reference in New Issue
Block a user