mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-13 04:36:53 -04:00
Added note about path separator
Having gone through https://discourse.gohugo.io/t/different-behavior-locally-vs-on-netlify/19266/5, I figured I'd add a note.
This commit is contained in:
parent
d667eefc61
commit
2e3db7c18c
@ -47,6 +47,6 @@ The `.File` object contains the following fields:
|
||||
: the language associated with the given file if Hugo's [Multilingual features][multilingual] are enabled (e.g., `en`)
|
||||
|
||||
.File.Dir
|
||||
: given the path `content/posts/dir1/dir2/`, the relative directory path of the content file will be returned (e.g., `posts/dir1/dir2/`)
|
||||
: given the path `content/posts/dir1/dir2/`, the relative directory path of the content file will be returned (e.g., `posts/dir1/dir2/`). Note that the path separator (`\` or `/`) could be dependent on the operating system.
|
||||
|
||||
[Multilingual]: /content-management/multilingual/
|
||||
|
Loading…
x
Reference in New Issue
Block a user