aboutsummaryrefslogtreecommitdiffstats
path: root/layouts/index.json
blob: b8559e73c1f5fec53b391129a4f3fb78df5220fa (plain)
1
2
3
4
5
6
7
{{- $.Scratch.Add "index" slice -}}
{{- range .Site.RegularPages -}}
{{- if ne .Params.noindex true -}}
    {{- $.Scratch.Add "index" (dict "title" .Title "tags" .Params.tags "categories" .Params.categories "contents" .Plain "permalink" .Permalink) -}}
{{- end -}}
{{- end -}}
{{- $.Scratch.Get "index" | jsonify -}}