mirror of
https://github.com/reonokiy/blog.nokiy.net.git
synced 2025-06-16 11:41:17 +02:00
feat: add theme toggle for light/dark modes
This commit is contained in:
parent
d148649454
commit
d599b3e26d
9 changed files with 125 additions and 28 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue