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

feat: enable commentCount for Twikoo and Waline #258

Merged
merged 3 commits into from
Oct 3, 2021
Merged

Conversation

HEIGE-PCloud
Copy link
Owner

Reference

@HEIGE-PCloud HEIGE-PCloud added enhancement Enhance existing features dependencies Pull requests that update a dependency file labels Sep 30, 2021
@HEIGE-PCloud HEIGE-PCloud added this to the v0.2.13 milestone Sep 30, 2021
@HEIGE-PCloud HEIGE-PCloud self-assigned this Sep 30, 2021
@HEIGE-PCloud HEIGE-PCloud linked an issue Sep 30, 2021 that may be closed by this pull request
@HEIGE-PCloud
Copy link
Owner Author

@gclm 麻烦帮忙测试一下。

@vercel
Copy link

vercel bot commented Sep 30, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/pcloud/do-it/5WnuvWSRhEqADhs9miMmebmWBg3V
✅ Preview: https://do-it-git-dev-comment-pcloud.vercel.app

@nyancccat
Copy link

nyancccat commented Oct 24, 2021

waline 评论次数不显示。

Waline 支持在非评论区单独显示评论数,其方式和页面浏览量类似。Waline 会自动查找页面中 class 值为 waline-comment-count 的元素,获取其 id 为查询条件,并将值填入其中。

我看文章页面确实生成了 waline-comment-count 的 class:

<i class="far fa-comments fa-fw"></i>&nbsp;<span class="waline-comment-count" id="waline-comment-count"></span>&nbsp;条评论

配置项

commentCount = true
可是还是显示 0 条。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file enhancement Enhance existing features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEATURE] 主题新增文章评论数统计
2 participants