12 lines
428 B
JSON
12 lines
428 B
JSON
[
|
|
{{ range $index, $page := (where .Site.Pages "Params.GeekdocProtected" "ne" true) }}
|
|
{{ if ne $index 0 }},{{ end }}
|
|
{
|
|
"id": {{ $index }},
|
|
"href": "{{ $page.RelPermalink }}",
|
|
"title": {{ (partial "utils/title" $page) | jsonify }},
|
|
"parent": {{ with $page.Parent }}{{ (partial "utils/title" .) | jsonify }}{{ else }}""{{ end }},
|
|
"content": {{ $page.Plain | jsonify }}
|
|
}
|
|
{{ end }}
|
|
]
|