mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-14 14:17:43 +00:00
Update shortcodes.md
This commit is contained in:
1 parent
c1b28dbfe2
commit
e993539f05
1 file changed
+3
-3
@@ -26,15 +26,15 @@ toc: false
|
|||||||
.Ordinal
|
.Ordinal
|
||||||
: Zero-based ordinal in relation to its parent. If the parent is the page itself, this ordinal will represent the position of this shortcode in the page content.
|
: Zero-based ordinal in relation to its parent. If the parent is the page itself, this ordinal will represent the position of this shortcode in the page content.
|
||||||
|
|
||||||
|
.Page
|
||||||
|
: The owning ´Page`.
|
||||||
|
|
||||||
.Parent
|
.Parent
|
||||||
: provides access to the parent shortcode context in nested shortcodes. This can be very useful for inheritance of common shortcode parameters from the root.
|
: provides access to the parent shortcode context in nested shortcodes. This can be very useful for inheritance of common shortcode parameters from the root.
|
||||||
|
|
||||||
.Position
|
.Position
|
||||||
: Contains [filename and position](https://godoc.org/github.com/gohugoio/hugo/common/text#Position) for the shortcode in a page. Note that this can be relatively expensive to calculate, and is meant for error reporting. See [Error Handling in Shortcodes](/templates/shortcode-templates/#error-handling-in-shortcodes).
|
: Contains [filename and position](https://godoc.org/github.com/gohugoio/hugo/common/text#Position) for the shortcode in a page. Note that this can be relatively expensive to calculate, and is meant for error reporting. See [Error Handling in Shortcodes](/templates/shortcode-templates/#error-handling-in-shortcodes).
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
.IsNamedParams
|
.IsNamedParams
|
||||||
: boolean that returns `true` when the shortcode in question uses [named rather than positional parameters][shortcodes]
|
: boolean that returns `true` when the shortcode in question uses [named rather than positional parameters][shortcodes]
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user