mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-15 12:14:41 -04:00
Mark .Page.UniqueID as deprecated and add .File.UniqueID
This commit is contained in:
parent
30a7b7bf22
commit
4bdc9bc729
@ -39,7 +39,6 @@ The `.File` object contains the following fields:
|
|||||||
.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 `.`.
|
||||||
|
|
||||||
@ -49,4 +48,7 @@ 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/`). Note that the path separator (`\` or `/`) could be dependent on the operating system.
|
: 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.
|
||||||
|
|
||||||
|
.File.UniqueID
|
||||||
|
: the MD5-checksum of the content file's path.
|
||||||
|
|
||||||
[Multilingual]: /content-management/multilingual/
|
[Multilingual]: /content-management/multilingual/
|
||||||
|
@ -179,8 +179,8 @@ http://remarkjs.com)
|
|||||||
.Type
|
.Type
|
||||||
: the [content type](/content-management/types/) of the content (e.g., `posts`).
|
: the [content type](/content-management/types/) of the content (e.g., `posts`).
|
||||||
|
|
||||||
.UniqueID
|
.UniqueID (deprecated)
|
||||||
: the MD5-checksum of the content file's path.
|
: the MD5-checksum of the content file's path. This variable is deprecated and will be removed, use `.File.UniqueID` instead.
|
||||||
|
|
||||||
.Weight
|
.Weight
|
||||||
: assigned weight (in the front matter) to this content, used in sorting.
|
: assigned weight (in the front matter) to this content, used in sorting.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user