embed set canonical url 站点设置可能有助于解决此问题:
不过,值得查看 Google 的文档:
- How to Specify a Canonical with rel="canonical" and Other Methods | Google Search Central | Documentation | Google for Developers (此链接的文本为什么是法语?)
- 5 common mistakes with rel=canonical | Google Search Central Blog | Google for Developers
我链接到文档的原因是,我不确定在启用 embed truncate 设置时启用 embed set canonical url 设置的情况。当启用 embed truncate 时,Google 在 Discourse 上实际只能抓取到原始文章的片段。如果用户点击“显示完整帖子”按钮,完整文章将在 iframe 中显示。我很确定 iframe 内容不会被 Google 抓取。“5 个常见错误”文章中的第一点似乎解决了这个问题。
