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:
Darshan Baral 2019-06-19 21:24:49 -07:00 committed by Bjørn Erik Pedersen
parent d667eefc61
commit 2e3db7c18c

View File

@ -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/