portails/layouts/_default/index.json

5 lines
249 B
JSON
Raw Normal View History

2020-11-04 08:26:58 +01:00
{{- $.Scratch.Add "index" slice -}}
{{- range .Site.RegularPages -}}
{{- $.Scratch.Add "index" (dict "title" .Title "description" .Params.description "contents" .Plain "permalink" .Permalink) -}}
{{- end -}}
{{- $.Scratch.Get "index" | jsonify -}}