diff --git a/docs/content/templates/variables.md b/docs/content/templates/variables.md index 844620cff..98151bfcb 100644 --- a/docs/content/templates/variables.md +++ b/docs/content/templates/variables.md @@ -173,10 +173,12 @@ The `.File` variable gives you additional information of a page. Available are the following attributes: -**.File.Path** The original relative path of the page, e.g. `content/posts/foo.md`
-**.File.LogicalName** The name of the content file that represents a page, e.g. `foo.md`
-**.File.BaseFileName** The filename without extension, e.g. `foo`
+**.File.Path** The original relative path of the page, e.g. `content/posts/foo.en.md`
+**.File.LogicalName** The name of the content file that represents a page, e.g. `foo.en.md`
+**.File.TranslationBaseName** The filename without extension or optional language identifier, e.g. `foo`
+**.File.BaseFileName** The filename without extension, e.g. `foo.en`
**.File.Ext** or **.File.Extension** The file extension of the content file, e.g. `md`
+**.File.Lang** The language associated with the given file if [Multilingual]({{< relref "content/multilingual.md" >}}) is 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/`
## Hugo Variables