hugo-geekdoc/assets/search-data.json
2021-01-05 16:40:02 +01:00

13 lines
372 B
JSON

[
{{ range $index, $page := .Site.Pages }}
{{ if ne $index 0 }},{{ end }}
{
"id": {{ $index }},
"href": "{{ $page.RelPermalink }}",
"title": {{ (partial "title" $page) | jsonify }},
"parent": {{ with $page.Parent }}{{ (partial "title" .) | jsonify }}{{ else }}""{{ end }},
"content": {{ $page.Plain | jsonify }}
}
{{ end }}
]