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

字数统计不正确 #18

Closed
riverscn opened this issue Jul 26, 2017 · 1 comment
Closed

字数统计不正确 #18

riverscn opened this issue Jul 26, 2017 · 1 comment

Comments

@riverscn
Copy link

目前统计的是英文单词数,而无法正确统计中文字数。

@nodejh
Copy link
Owner

nodejh commented Dec 4, 2017

hugo 默认统计的是英文的字符,如果有中文需要在 config.toml 中设置 hasCJKLanguage = true 。如:

# Site settings
languageCode = "zh-cn"
# 网站有 CJK 字符(中日韩统一表意文字),设置 hasCJKLanguage = true 
hasCJKLanguage = true 

@nodejh nodejh closed this as completed Dec 15, 2017
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