len
少于1分钟
将以下英文翻译为中文:
len
https://gohugo.io/functions/len/
Returns the length of a string, slice, map, or collection.
语法
len INPUT
With a string:
| |
With a slice:
| |
With a map:
| |
With a collection:
| |
You may also determine the number of pages in a collection with:
| |
另请参阅
最后修改 June 1, 2023: 新增一个配置参数:sidebar_menu_truncate = 500 用于解决菜单不全的问题 (27810f1)