mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-13 20:14:58 +00:00
Add .Page.CurrentSection and .Page.Sections documentation
This commit is contained in:
1 parent
60b4414dec
commit
62df7bb805
1 file changed
+6
@@ -32,6 +32,9 @@ See [`.Scratch`](/functions/scratch/) for page-scoped, writable variables.
|
|||||||
`.Content`
|
`.Content`
|
||||||
: the content itself, defined below the front matter.
|
: the content itself, defined below the front matter.
|
||||||
|
|
||||||
|
`.CurrentSection`
|
||||||
|
: the page's current section. The value can be the page itself if it is a section or the homepage.
|
||||||
|
|
||||||
`.Data`
|
`.Data`
|
||||||
: the data specific to this type of page.
|
: the data specific to this type of page.
|
||||||
|
|
||||||
@@ -145,6 +148,9 @@ http://remarkjs.com)
|
|||||||
`.Section`
|
`.Section`
|
||||||
: the [section](/content-management/sections/) this content belongs to.
|
: the [section](/content-management/sections/) this content belongs to.
|
||||||
|
|
||||||
|
`.Sections`
|
||||||
|
: the [sections](/content-management/sections/) below this content.
|
||||||
|
|
||||||
`.Site`
|
`.Site`
|
||||||
: see [Site Variables](/variables/site/).
|
: see [Site Variables](/variables/site/).
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user