Repository navigation
feat: 添加公众号关注入口与 GitHub Discussions 评论 - #40
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
MoMeak9
marked this pull request as ready for review
October 9, 2026 15:45
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
中文博客缺少公众号关注入口,文章也没有评论区。本次加入「泯泷ML」二维码关注卡,并使用 Giscus 将公开文章的评论保存到本仓库的 GitHub Discussions。
公众号入口出现在中文首页、文章末尾、联系页、社交栏、页脚和手机菜单;二维码使用上传原图,提供保存图片与复制名称功能,适配手机及深色模式,英文界面不显示公众号入口。
文章评论按稳定的 Markdown 源路径映射,中英文版本和不同部署前缀共享讨论;按需加载,同步明暗主题,支持加载失败重试及 GitHub 讨论入口。评论 UI 位于文章搜索正文之外。已通过 GitHub 与 Giscus 官方接口核验仓库、App 安装和 Announcements 分类配置,站点不存放 GitHub Token。
验证:
pnpm check:0 errors、0 warnings,保留既有 4 hints。pnpm test:55 项测试通过。/MyBlogDoc/前缀下构建和pnpm test:build:14 项测试通过,新增原始二维码发布、中英文评论标识和搜索正文隔离验证。验证限制:云环境的 Chromium 不信任平台代理证书,持久导入代理 CA 的请求被自动审批拒绝。测试通过原始响应转交验证界面,保留上游 TLS 校验,未修改浏览器证书库,也未提交测试留言或验证登录后发帖。
配置和维护说明见 docs/comments.md 与 README。