feat(backend) backed init

This commit is contained in:
lumither committed 2024-05-02 19:02:13 +08:00
1 parent a685537499
commit 1668de832f
12 files changed
+135 -5

No files matched your search

+1 -2
View File
@@ -2,7 +2,6 @@
import React from 'react';
import Markdown from 'react-markdown';
import { test_markdown } from '@/app/blog/post/[id]/test_markdown';
import { Card, CardBody } from '@nextui-org/card';
import remarkGfm from 'remark-gfm';
import rehypeHighlight from 'rehype-highlight';
@@ -28,7 +27,7 @@ async function Generate(props: Props) {
<Card className={ `w-full max-w-[1024px]` }>
<CardBody>
<Markdown
className={`mx-5 my-5 max-w-none prose dark:prose-invert sm:prose-sm md:prose-sm lg:prose-lg`}
className={ `mx-5 my-5 max-w-none prose dark:prose-invert sm:prose-sm md:prose-sm lg:prose-lg` }
remarkPlugins={ [ remarkGfm, remarkToc ] }
rehypePlugins={ [ rehypeHighlight, rehypeRaw, rehypeSanitize ] }
>{ post_md }</Markdown>
+2 -2
View File
@@ -4,8 +4,8 @@ import Generate from '@/app/blog/post/[id]/generate';
function BlogReader({ params }: { params: { id: string } }) {
return (
<div className={`mx-7 my-7 w-full max-w-[1024px]`}>
<Generate id={params.id} />
<div className={ `mx-7 my-7 w-full max-w-[1024px]` }>
<Generate id={ params.id } />
</div>
);
}