fix(文档): 修复评论组件ID并统一主页样式

- 将评论组件ID从'zcomments'改为更通用的'comments'
- 为主页评论区域添加样式约束
- 统一主页标题字符串引号格式
This commit is contained in:
anghunk
2026-01-20 10:43:34 +08:00
parent 0485b1320c
commit f4e6bf45d3
3 changed files with 7 additions and 3 deletions

View File

@@ -1,5 +1,5 @@
<template>
<div id="zcomments" ref="commentsRoot"></div>
<div id="comments" ref="commentsRoot"></div>
</template>
<script setup>

View File

@@ -9,7 +9,7 @@ export default {
return h(Layout, null, {
'doc-footer-before': () => h(FooterDoc),
'home-features-after': () => h(FooterDoc),
})
},
}

View File

@@ -2,7 +2,7 @@
layout: home
hero:
name: "CWD 评论系统"
name: 'CWD 评论系统'
tagline: 轻量级、高性能的评论解决方案, 基于 Cloudflare Workers + D1 + KV 构建
image:
src: https://github.com/anghunk/cwd-comments/blob/main/icon.png?raw=true
@@ -26,3 +26,7 @@ features:
title: 易于集成
details: 提供完整的 REST API支持任意前端框架
---
<style>
#comments{max-width:1152px;margin:2em auto 0;}
</style>