summaryrefslogtreecommitdiff
path: root/assets/search-data.json
blob: 9a137c3bfd33957ddcc5178f3323506d8ed7a697 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
[
{{- $pages := where .Site.Pages "Kind" "in" (slice "page" "section") -}}
{{- $pages = where $pages "Params.booksearchexclude" "!=" true -}}
{{- $pages = where $pages "Content" "not in" (slice nil "") -}}

{{ range $index, $page := $pages }}
{{ if gt $index 0}},{{end}} {
    "id": {{ $index }},
    "href": "{{ $page.RelPermalink }}",
    "title": {{ (partial "docs/title" $page) | jsonify }},
    "section": {{ (partial "docs/title" $page.Parent) | jsonify }},
    "content": {{ $page.Plain | jsonify }}
}
{{- end -}}
]