# Tecnoblog 使用 Discourse 评论系统的体验

**URL:** https://meta.discourse.org/t/tecnoblogs-experience-with-discourse-comments/400721
**Category:** Feature
**Tags:** embedding
**Created:** [2026年四月15日 18:15 UTC](https://meta.discourse.org/t/tecnoblogs-experience-with-discourse-comments/400721 "2026-04-15T18:15:07Z")
**Posts on this page:** 1
**Showing post:** 27

<div class="post-metadata">

### Author: ![stromfeldt](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stromfeldt/32/223364_2.png) [@stromfeldt](https://meta.discourse.org/u/stromfeldt)
#### Post date: [2026年四月21日 02:26 UTC](https://meta.discourse.org/t/tecnoblogs-experience-with-discourse-comments/400721/27 "2026-04-21T02:26:09Z")

</div>

> [@Thiago\_Mobilon](#):
>
> 不过，我发现了两个小问题

我在你的网站上还注意到另一个问题。我看到你将博客的深色模式/浅色模式系统与新 Discourse 嵌入功能进行了集成，这样在切换博客模式时，嵌入内容的模式也会自动切换。然而，虽然这种集成在 Firefox 和 Chrome 中运行良好，但在 Safari 中却无法正常工作。我猜测这可能是 Discourse 的问题，因为不仅“允许访问”弹窗仅与 Safari 有关，另一个滚动条工作异常的问题也仅影响 Safari。

暂且不提这些，我很好奇你是如何实现深色模式/浅色模式集成的。几年前，我发布了一篇关于[嵌入评论的自动深色模式](https://meta.discourse.org/t/automatic-dark-mode-for-embedded-comments-as-well/184347)的帖子，并因此让某人编写了一个使用 `postMessage` 的脚本，使两个系统能够协同工作。但在 Discourse 新的完整评论系统嵌入中，该脚本似乎已失效（默认奇怪地变成了 Discourse 主题的深色模式）。所以我的问题是：你是否之前编写过一个 `postMessage` 脚本，并针对 Discourse 的新嵌入系统进行了更新？如果是这样（尽管你使用 WordPress 而我使用 Ghost），你是否愿意分享你的代码？也许我可以将你的代码与我现有的代码进行对比，尝试在 Ghost 和我的博客深色模式设置中让一切正常工作。

---

_[View the full topic](https://meta.discourse.org/t/tecnoblogs-experience-with-discourse-comments/400721)._
