Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature]: 设置指定页面禁止评论 || [Feature]: Set the specified page to prohibit comments. #2092

Closed
Steven-WZH opened this issue Sep 19, 2023 · 4 comments
Labels
discussion Question or dicussion invalid This doesn't seem right

Comments

@Steven-WZH
Copy link

Steven-WZH commented Sep 19, 2023

功能概述 | Describe the feature

有许多人在后台链接评论
image
这样会导致整个站点的每个评论区都有这些评论
能否增加后台链接评论区禁止评论的变量


Feature Overview | Describe the feature

There are many people linking and commenting in the background
image
This will result in these comments appearing in every comments section throughout the site
Can you add a variable that prohibits comments in the background link comment area?

@Steven-WZH Steven-WZH added discussion Question or dicussion enhancement New feature or request labels Sep 19, 2023
@github-actions github-actions bot changed the title [Feature]: 设置指定页面禁止评论 [Feature]: 设置指定页面禁止评论 || [Feature]: Set the specified page to prohibit comments. Sep 19, 2023
@lizheming
Copy link
Collaborator

lizheming commented Sep 19, 2023

不太理解问题,什么叫做“后台链接”,以及“整个站点的每个评论区都有这些评论”


I don’t quite understand the question, what is a “backend link”, and “there are these comments in every comment area of ​​the entire site”

@Steven-WZH
Copy link
Author

Steven-WZH commented Sep 19, 2023

抱歉我没有表达清楚。
下面两个链接的评论可以参考
https://waline.stevenw.cc/
https://blog.stevenw.cc/?p=docker-da-jian-walineping-lun-xi-tong


Sorry I didn't express myself clearly.
You can refer to the comments at the two links below
https://waline.stevenw.cc/
https://blog.stevenw.cc/?p=docker-da-jian-walineping-lun-xi-tong

@Mister-Hope
Copy link
Member

Mister-Hope commented Sep 19, 2023

你所有的页面的 path 都是 /,反过来问我们为什么所有页面共享同一个评论页?


The path of all your pages is /. On the other hand, ask us why all pages share the same comment page?

@Mister-Hope Mister-Hope added invalid This doesn't seem right and removed enhancement New feature or request labels Sep 19, 2023
@Mister-Hope Mister-Hope closed this as not planned Won't fix, can't repro, duplicate, stale Sep 19, 2023
@lizheming
Copy link
Collaborator

每个页面需要有一个唯一 ID,和评论映射上,这样 Waline 能知道评论从属于哪个页面。Waline 默认使用的是 URL path 来做的唯一参数。 https://blog.stevenw.cc/themes/theme-hao/assets/js/comment/waline.js 你可以修改这个主题文件针对到你的场景进行适配。

具体可以查看文档 https://waline.js.org/reference/client/props.html#path

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discussion Question or dicussion invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

3 participants