mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-14 18:44:46 -04:00
add headings to distinguish render hook context params
This commit is contained in:
parent
d96d75be48
commit
0651a76e03
@ -49,6 +49,8 @@ Some use cases for the above:
|
|||||||
|
|
||||||
## Render Hooks for Headings, Links and Images
|
## Render Hooks for Headings, Links and Images
|
||||||
|
|
||||||
|
### Context passed to `render-link` and `render-image`
|
||||||
|
|
||||||
The `render-link` and `render-image` templates will receive this context:
|
The `render-link` and `render-image` templates will receive this context:
|
||||||
|
|
||||||
Page
|
Page
|
||||||
@ -66,6 +68,8 @@ Text
|
|||||||
PlainText
|
PlainText
|
||||||
: The plain variant of the above.
|
: The plain variant of the above.
|
||||||
|
|
||||||
|
### Context passed to `render-heading`
|
||||||
|
|
||||||
The `render-heading` template will receive this context:
|
The `render-heading` template will receive this context:
|
||||||
|
|
||||||
Page
|
Page
|
||||||
|
Loading…
x
Reference in New Issue
Block a user