feat: add theme toggle for light/dark modes

This commit is contained in:
radishzzz 2025-01-20 10:36:14 +00:00
parent d148649454
commit d599b3e26d
9 changed files with 125 additions and 28 deletions

View file

@ -14,7 +14,11 @@ const { post } = Astro.props
const { Content } = await post.render()
---
<Layout>
<Layout
postTitle={post.data.title}
postDescription={post.data.description}
postImage={post.data.image}
>
<article>
<h1>{post.data.title}</h1>
<time>{post.data.published.toISOString().split('T')[0]}</time>