mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-18 13:14:55 -04:00
Add jsonify template func
This commit is contained in:
parent
3aff0830df
commit
5517f248c6
@ -112,6 +112,14 @@ e.g.
|
||||
{{ .Render "summary" }}
|
||||
{{ end }}
|
||||
|
||||
|
||||
### jsonify
|
||||
Encodes a given object to JSON.
|
||||
|
||||
e.g.
|
||||
|
||||
{{ dict "title" .Title "content" .Plain | jsonify }}
|
||||
|
||||
### last
|
||||
Slices an array to only the last _N_ elements.
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user