mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-27 22:09:53 +02:00
Add jsonify template func
This commit is contained in:
@@ -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.
|
||||
|
||||
|
Reference in New Issue
Block a user