countrunes
少于1分钟
将以下英文翻译为中文:
countrunes
https://gohugo.io/functions/countrunes/
Determines the number of runes in a string excluding any whitespace.
语法
countrunes INPUT
strings.CountRunes INPUT
In contrast with countwords function, which counts every word in a string, the countrunes function determines the number of runes in the content and excludes any whitespace. This has specific utility if you are dealing with CJK-like languages.
| |
另请参阅
最后修改 June 1, 2023: 新增一个配置参数:sidebar_menu_truncate = 500 用于解决菜单不全的问题 (27810f1)