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