add slug page

This commit is contained in:
DefectingCat
2023-05-16 16:45:28 +08:00
parent ecf63f146f
commit c8f7e65f80
9 changed files with 98 additions and 8 deletions

View File

@ -1,3 +1,5 @@
'use client';
import Giscus from '@giscus/react';
import { useTheme } from 'next-themes';
import { memo } from 'react';
@ -24,4 +26,4 @@ const PostComment = () => {
);
};
export default memo(PostComment);
export default memo(PostComment);

View File

@ -1,3 +1,5 @@
'use client';
import { useTheme } from 'next-themes';
import Image from 'next/image';
import { memo } from 'react';
@ -29,4 +31,4 @@ const PostCommnetLine = () => {
);
};
export default memo(PostCommnetLine);
export default memo(PostCommnetLine);

View File

@ -1,3 +1,5 @@
'use client';
import clsx from 'clsx';
import Anchor from 'components/mdx/anchor';
import { SingleToc } from 'lib/utils';
@ -77,4 +79,4 @@ const PostToc = ({ toc, tocLength }: Props) => {
);
};
export default memo(PostToc);
export default memo(PostToc);