2021-01-05 16:40:02 +01:00
|
|
|
[
|
2021-05-06 21:42:45 +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 }}",
|
2022-02-07 10:57:43 +01:00
|
|
|
"title": {{ (partial "utils/title" $page) | jsonify }},
|
|
|
|
"parent": {{ with $page.Parent }}{{ (partial "utils/title" .) | jsonify }}{{ else }}""{{ end }},
|
2021-01-05 16:40:02 +01:00
|
|
|
"content": {{ $page.Plain | jsonify }}
|
|
|
|
}
|
|
|
|
{{ end }}
|
|
|
|
]
|