add tags in json data
Signed-off-by: Toshaan Bharvani <toshaan@vantosh.com>remotes/1691121312378018446/archetype-theme-transition
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…
Reference in New Issue