Mark .Page.UniqueID as deprecated and add .File.UniqueID

This commit is contained in:
Jake Jarvis 2020-04-12 10:29:11 -04:00 committed by Bjørn Erik Pedersen
parent 30a7b7bf22
commit 4bdc9bc729
2 changed files with 5 additions and 3 deletions

View File

@ -39,7 +39,6 @@ The `.File` object contains the following fields:
.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 `.`.
@ -49,4 +48,7 @@ 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/`). 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/

View File

@ -179,8 +179,8 @@ http://remarkjs.com)
.Type
: the [content type](/content-management/types/) of the content (e.g., `posts`).
.UniqueID
: the MD5-checksum of the content file's path.
.UniqueID (deprecated)
: the MD5-checksum of the content file's path. This variable is deprecated and will be removed, use `.File.UniqueID` instead.
.Weight
: assigned weight (in the front matter) to this content, used in sorting.