From 2e3db7c18c41667f2015d66cddef952f4108903c Mon Sep 17 00:00:00 2001 From: Darshan Baral Date: Wed, 19 Jun 2019 21:24:49 -0700 Subject: [PATCH] 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. --- content/en/variables/files.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/en/variables/files.md b/content/en/variables/files.md index 7eaaa6440..eb5d404de 100644 --- a/content/en/variables/files.md +++ b/content/en/variables/files.md @@ -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/