feat(blog) add footer for post reading part

This commit is contained in:
lumither committed 2024-07-26 19:30:43 +08:00
1 parent dbe84bc9f4
commit 36f686c563
11 files changed
+180 -25

No files matched your search

+8 -1
View File
@@ -10,6 +10,7 @@ import { oneDark } from 'react-syntax-highlighter/dist/esm/styles/prism';
import rehypeRaw from 'rehype-raw';
import rehypeSanitize from 'rehype-sanitize';
import Headers from '@/app/blog/post/[id]/Headers';
import Footer from '@/app/blog/post/[id]/Footer';
type Props = {
id: string
@@ -37,7 +38,7 @@ async function PostCard(props: Props) {
<div>
<Card className={ `max-w-full relative` }>
{/* card headers*/ }
{/* card headers */ }
<Headers post={ post_data } />
{/* card body */ }
@@ -87,6 +88,12 @@ async function PostCard(props: Props) {
} }
>{ (post_data as any)['content'] }</Markdown>
</CardBody>
{/* card footer */ }
<Footer post={ post_data } />
</Card>
</div>
);