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

请教为啥我的文章字数统计不正确,几千字下来,显示确实: 文章字数: 120 #24

Open
gaodaqiang1 opened this issue Oct 24, 2023 · 9 comments

Comments

@gaodaqiang1
Copy link

image

@xioyito
Copy link
Owner

xioyito commented Oct 24, 2023

尝试把 hugo.toml 里 hasCJKLanguage 的值改成 true

@gaodaqiang1
Copy link
Author

image
是true呢

@gaodaqiang1
Copy link
Author

改成flase 貌似也没有变化

@gaodaqiang1
Copy link
Author

false

@xioyito
Copy link
Owner

xioyito commented Oct 24, 2023

这边测试过 hasCJKLanguage 改为 true 时是有效的。不确定你的问题是什么引起的,请尝试新建一篇用来测试的文章(例:test.md),然后输入一些文本来测试字数统计是否正常工作,并找出在哪些情况下字符统计不正确

@xioyito
Copy link
Owner

xioyito commented Oct 24, 2023

统计的结果有误差但误差不大时可以忽略,是正常现象

@gaodaqiang1
Copy link
Author

image
奇怪哈

@gaodaqiang1
Copy link
Author

如何有中英文文章,hugo.toml里面没有区分吧设置中文就无法正确适配英文了

@xioyito
Copy link
Owner

xioyito commented Feb 20, 2024

如果您还在用此主题, 方便的话, 把你的网站文件发我我看看, 谢谢

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