mirror of
https://github.com/gohugoio/hugo.git
synced 2026-08-24 15:28:54 +00:00
6896947058
* add generic menu declaration * update about section * commands * update content management section * update contribute section * functions * update getting started section * update hosting and deployment section * fix mailing list entry (no menu) * update news section * update Templates section * update tools section * update themes section * troubleshooting * update variables section Fixes rdwatters/hugo-docs-concept#45 See PR rdwatters/hugo-docs-concept#62
1.2 KiB
1.2 KiB
title, linktitle, description, date, publishdate, lastmod, categories, tags, draft, menu, weight, aliases, toc
| title | linktitle | description | date | publishdate | lastmod | categories | tags | draft | menu | weight | aliases | toc | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Shortcode Variables | Shortcode Variables | Shortcodes can access page variables and also have their own specific built-in variables. | 2017-03-12 | 2017-03-12 | 2017-03-12 |
|
|
false |
|
20 | false |
Shortcodes have access to parameters delimited in the shortcode declaration via .Get, page- and site-level variables, and also the following shortcode-specific fields:
.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.
.IsNamedParams- boolean that returns
truewhen the shortcode in question uses named rather than positional parameters .Inner- represents the content between the opening and closing shortcode tags when a closing shortcode is used