少于1分钟
将以下英文翻译为中文:
https://gohugo.io/functions/path.basename/
BaseName returns the last element of a path, removing the extension if present.
path.BaseName PATH
If PATH
is empty, .
is returned.
Note: On Windows, PATH
is converted to slash (/
) separators.
|
|