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

畅言评论建议增加sid #121

Closed
trentzhou opened this issue Jan 3, 2019 · 2 comments
Closed

畅言评论建议增加sid #121

trentzhou opened this issue Jan 3, 2019 · 2 comments

Comments

@trentzhou
Copy link
Contributor

有可能一个文章会有多个URL可以访问到,比如:

http://my-site/page
https://my-site/page
http://www.my-site/page
https://www.my-site/page

默认情况下,畅言认为这些是不同的页面。
根据 畅言的文档 http://changyan.kuaizhan.com/static/help/f-source-id.html
我们可以给文章加一个sid,这样即使用不同的URL访问,看到的内容也是一样的。

我觉得很容易修改,只需要改一下 layouts/partials/comments.html,22行变成 <div id="SOHUCS" sid="{{ .URL }}"></div>

我简单地测试过了,可以用的。

@olOwOlo
Copy link
Owner

olOwOlo commented Jan 5, 2019

欢迎 PR 😃

@trentzhou
Copy link
Contributor Author

#133

daymade pushed a commit to daymade/hugo-theme-even that referenced this issue Sep 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants