mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-16 01:46:52 -04:00
fix file naming used in example (#1392)
This commit is contained in:
parent
00665b97b7
commit
17f15daa61
@ -25,7 +25,7 @@ If there is no slash in `PATH`, it returns an empty directory and the base is se
|
|||||||
**Note:** On Windows, `PATH` is converted to slash (`/`) separators.
|
**Note:** On Windows, `PATH` is converted to slash (`/`) separators.
|
||||||
|
|
||||||
```
|
```
|
||||||
{{ $dirFile := path.Split "a/news.html" }} → $dirDile.Dir → "a/", $dirFile.File → "news.html"
|
{{ $dirFile := path.Split "a/news.html" }} → $dirFile.Dir → "a/", $dirFile.File → "news.html"
|
||||||
{{ $dirFile := path.Split "news.html" }} → $dirDile.Dir → "", $dirDile.File → "news.html"
|
{{ $dirFile := path.Split "news.html" }} → $dirFile.Dir → "", $dirFile.File → "news.html"
|
||||||
{{ $dirFile := path.Split "a/b/c" }} → $dirDile.Dir → "a/b/", $dirDile.File → "c"
|
{{ $dirFile := path.Split "a/b/c" }} → $dirFile.Dir → "a/b/", $dirFile.File → "c"
|
||||||
```
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user