Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'docs/content/en/variables/files.md')
-rw-r--r--docs/content/en/variables/files.md6
1 files changed, 5 insertions, 1 deletions
diff --git a/docs/content/en/variables/files.md b/docs/content/en/variables/files.md
index ac5376dbd..0a32bc021 100644
--- a/docs/content/en/variables/files.md
+++ b/docs/content/en/variables/files.md
@@ -33,9 +33,13 @@ The `.File` object contains the following fields:
.File.TranslationBaseName
: the filename without extension or optional language identifier (e.g., `foo`)
+.File.ContentBaseName
+: is a either TranslationBaseName or name of containing folder if file is a leaf bundle.
+
.File.BaseFileName
: the filename without extension (e.g., `foo.en`)
+
.File.Ext
: the file extension of the content file (e.g., `md`); this can also be called using `.File.Extension` as well. Note that it is *only* the extension without `.`.
@@ -45,4 +49,4 @@ The `.File` object contains the following fields:
.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/`)
-[Multilingual]: /content-management/multilingual/ \ No newline at end of file
+[Multilingual]: /content-management/multilingual/