new style

This commit is contained in:
2026-03-27 22:41:38 +13:00
parent 4775b2831e
commit c86cc3cd71
17 changed files with 1192 additions and 242 deletions

View File

@@ -15,6 +15,7 @@ interface Props {
const canonicalURL = new URL(Astro.url.pathname, Astro.site);
const { title, description, image = FallbackImage } = Astro.props;
---
<!-- Global Metadata -->
@@ -56,3 +57,14 @@ const { title, description, image = FallbackImage } = Astro.props;
<meta property="twitter:title" content={title} />
<meta property="twitter:description" content={description} />
<meta property="twitter:image" content={new URL(image.src, Astro.url)} />
<script is:inline>
if (sessionStorage.getItem("theme")) {
document.documentElement.setAttribute("data-theme", sessionStorage.getItem("theme"));
} else {
sessionStorage.setItem("theme", "light")
document.documentElement.setAttribute("data-theme", "light");
}
</script>