add tags in json data

Signed-off-by: Toshaan Bharvani <toshaan@vantosh.com>
newmemberlevels
Toshaan Bharvani 4 years ago
parent abd2f8a448
commit ac9b4fc7f5

@ -1,5 +1,5 @@
{{- $.Scratch.Add "index" slice -}}
{{- range .Data.Pages -}}
{{- $.Scratch.Add "index" (dict "title" .Title "permalink" .Permalink "contents" .Plain) }}
{{- $.Scratch.Add "index" (dict "title" .Title "permalink" .Permalink "contents" .Plain "tags" .Params.tags) }}
{{- end -}}
{{- $.Scratch.Get "index" | jsonify -}}

Loading…
Cancel
Save