mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-15 00:17:29 +00:00
Document .File.ContentBaseName
This commit is contained in:
1 parent
6d30c5aa1f
commit
0305e3c6b7
1 file changed
+5
-1
@@ -33,9 +33,13 @@ The `.File` object contains the following fields:
|
|||||||
.File.TranslationBaseName
|
.File.TranslationBaseName
|
||||||
: the filename without extension or optional language identifier (e.g., `foo`)
|
: 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
|
.File.BaseFileName
|
||||||
: the filename without extension (e.g., `foo.en`)
|
: the filename without extension (e.g., `foo.en`)
|
||||||
|
|
||||||
|
|
||||||
.File.Ext
|
.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 `.`.
|
: 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
|
.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/`)
|
||||||
|
|
||||||
[Multilingual]: /content-management/multilingual/
|
[Multilingual]: /content-management/multilingual/
|
||||||
Reference in new issue
Block a user