summaryrefslogtreecommitdiff
path: root/layouts/index.json
blob: 29d7e14d90a8954db6356d658b531cc6b3cc8c09 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
{{- $allPages := slice -}}

{{- range (where site.RegularPages "Section" "!=" "") -}}
    {{- $currentPage := dict
        "title" .Title
        "summary" (.Summary | plainify | htmlUnescape)
        "url" .RelPermalink
        "date" (.Date.Format "2006-01-02T15:04:05Z07:00")
        "tags" .Params.tags
    -}}
    {{- $allPages = $allPages | append $currentPage -}}
{{- end -}}

{{ jsonify $allPages }}