path.Clean
少于1分钟
将以下英文翻译为中文:
path.Clean
https://gohugo.io/functions/path.clean/
Replaces path separators with slashes (/) and removes extraneous separators.
语法
path.Clean PATH
path.Clean replaces path separators with slashes (/) and removes extraneous separators, including trailing separators.
| |
On a Windows system, if .File.Path is foo\bar.md, then:
| |
另请参阅
最后修改 June 1, 2023: 新增一个配置参数:sidebar_menu_truncate = 500 用于解决菜单不全的问题 (27810f1)