Remove subtitles from the index.json since I do not use those

This commit is contained in:
Julien Dessaux 2021-09-12 13:45:36 +02:00
parent 2a4a3b2be9
commit ee235ae70b

View file

@ -1,5 +1,5 @@
{{- $.Scratch.Add "index" slice -}} {{- $.Scratch.Add "index" slice -}}
{{- range .Site.RegularPages -}} {{- range .Site.RegularPages -}}
{{- $.Scratch.Add "index" (dict "title" .Title "subtitle" .Params.subtitle "description" .Params.description "tags" .Params.tags "content" .Plain "permalink" .Permalink) -}} {{- $.Scratch.Add "index" (dict "title" .Title "description" .Params.description "tags" .Params.tags "content" .Plain "permalink" .Permalink) -}}
{{- end -}} {{- end -}}
{{- $.Scratch.Get "index" | jsonify -}} {{- $.Scratch.Get "index" | jsonify -}}