ppoffice / hexo-theme-icarus

A simple, delicate, and modern theme for the static site generator Hexo.
https://ppoffice.github.io/hexo-theme-icarus/
MIT License
6.36k stars 1.55k forks source link

在使用 Waline 等评论系统出现的问题 #1021

Closed Nofated095 closed 2 years ago

Nofated095 commented 2 years ago

确保你在提交Bug反馈之前仔细阅读了Hexo文档Icarus用户指南,和GitHub issues来了解你的问题是否已经被他人提出过。

Bug描述

Waline 会区分类似于 example.com/exampleexample.com/example/ 这两个相同的网址,会导致评论系统无法正常在 example 这个页面显示。

类似的有 https://blog.nofated.win/friendshttps://blog.nofated.win/friends/,前者无法显示评论,后者可以,但实际上这两个网页是相同的

系统与环境

Hexo 5.0

Icarus 4.5.0

复现方式 列出复现这个Bug的步骤,如:

  1. 访问 ‘https://blog.nofated.win/friends
  2. 下拉到‘评论’,发现没有评论
  3. 访问 ‘https://blog.nofated.win/friends/
  4. 下拉到‘评论’,发现有评论

期望行为 能使 example.com/exampleexample.com/example/ 都能正常显示评论

我在 waline 在 github 的 仓库上进行了反馈,他们给出了解决方案 https://github.com/walinejs/waline/discussions/748

截图

1 2

ppoffice commented 2 years ago

@Nofated095 严格意义上讲example.com/exampleexample.com/example/是两个不同的网址,自然其中一个页面的评论不会显示到另一个页面的评论中。如果因为个人需要把两个网址当作同一个网址的话,建议按照FAQ - 挂件/评论插件/分享按钮...的布局文件在哪里?我如何个性化内置的挂件/评论插件/分享按钮...?的方法自行修改waline.jsx