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 -}} {{- $.Scratch.Add "index" slice -}}
{{- range .Data.Pages -}} {{- 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 -}} {{- end -}}
{{- $.Scratch.Get "index" | jsonify -}} {{- $.Scratch.Get "index" | jsonify -}}

Loading…
Cancel
Save