feat(comments): 添加 Waline 评论组件,替换 Giscus 评论组件

This commit is contained in:
joyzhao
2026-01-12 09:46:29 +08:00
parent 1952f4de64
commit ca9e083399
6 changed files with 306 additions and 56 deletions

View File

@@ -12,7 +12,7 @@ import TableOfContents from '@/components/layout/TableOfContents.astro';
import BlogNavigation from '@/components/layout/BlogNavigation.astro';
import PostMeta from '@/components/blog/PostMeta.astro';
import Container from '../components/ui/Container';
import GiscusComments from '@/components/blog/GiscusComments';
import Comments from '@/components/blog/Comments';
// Use Astro's MarkdownLayoutProps for proper type safety
export type Props = MarkdownLayoutProps<FrontmatterProps>;
@@ -107,7 +107,7 @@ const finalReadingTime = readTime ? parseInt(readTime.replace(/\D/g, '')) : unde
<!-- Comments Section -->
<div class="mt-10 sm:mt-16 border-t border-border pt-10">
<GiscusComments client:only="react" lang={lang} />
<Comments client:only="react" lang={lang} />
</div>
<!-- Author Card moved to bottom with enhanced styling -->