feat: new blog layout and props

This commit is contained in:
KazooTTT
2025-02-05 15:27:29 +08:00
parent ea645368e9
commit fea129eb98
12 changed files with 36 additions and 50 deletions

View File

@ -14,7 +14,8 @@ const { Content } = await render(note);
<article
class:list={[
isPreview && "inline-grid rounded-md bg-[rgb(240,240,240)] px-4 py-3 dark:bg-[rgb(33,35,38)]",
isPreview &&
"inline-grid w-full rounded-md bg-[rgb(240,240,240)] px-4 py-3 dark:bg-[rgb(33,35,38)]",
]}
data-pagefind-body={isPreview ? false : true}
>
@ -37,7 +38,7 @@ const { Content } = await render(note);
month: "2-digit",
day: "2-digit",
}}
date={note.data.publishDate}
date={note.data.date}
/>
<div
class="prose prose-sm prose-cactus mt-4 max-w-none [&>p:last-of-type]:mb-0"