mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-20 21:31:32 +02:00
Merge commit 'a8e9fc699a6ff7d578f97a7c553ce844efad8fdb'
This commit is contained in:
@@ -40,7 +40,7 @@ The `.File` object contains the following fields:
|
||||
: 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 `.`.
|
||||
: the file extension of the content file (e.g., `md`).
|
||||
|
||||
.File.Lang
|
||||
: the language associated with the given file if Hugo's [Multilingual features][multilingual] are enabled (e.g., `en`)
|
||||
|
@@ -37,10 +37,10 @@ The `GitInfo` object contains the following fields:
|
||||
: the abbreviated commit hash (e.g., `866cbcc`)
|
||||
|
||||
.AuthorName
|
||||
: the author's name, respecting `.mailmap`
|
||||
: the author's name, respecting [`.mailmap`](https://git-scm.com/docs/gitmailmap)
|
||||
|
||||
.AuthorEmail
|
||||
: the author's email address, respecting `.mailmap`
|
||||
: the author's email address, respecting [`.mailmap`](https://git-scm.com/docs/gitmailmap)
|
||||
|
||||
.AuthorDate
|
||||
: the author date
|
||||
|
@@ -33,6 +33,9 @@ See [`.Scratch`](/functions/scratch/) for page-scoped, writable variables.
|
||||
.Aliases
|
||||
: aliases of this page
|
||||
|
||||
.BundleType
|
||||
: the [bundle] type: `leaf`, `branch`, or an empty string if the page is not a bundle.
|
||||
|
||||
.Content
|
||||
: the content itself, defined below the front matter.
|
||||
|
||||
@@ -305,3 +308,4 @@ The top-level key will be preferred. Therefore, the following method, when appli
|
||||
|
||||
[gitinfo]: /variables/git/
|
||||
[File Variables]: /variables/files/
|
||||
[bundle]: {{< relref "content-management/page-bundles" >}}
|
||||
|
Reference in New Issue
Block a user