2021-01-05 16:40:02 +01:00
|
|
|
[
|
2021-04-22 21:25:43 +02:00
|
|
|
{{ range $index, $page := (where .Site.Pages "Params.geekdocprotected" "ne" true) }}
|
2021-01-05 16:40:02 +01:00
|
|
|
{{ 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 }}
|
|
|
|
]
|