2021-01-05 16:40:02 +01:00
|
|
|
[
|
2023-06-22 09:45:54 +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 }},
|
2022-12-07 08:57:41 +01:00
|
|
|
"content": {{ $page.Plain | jsonify }},
|
|
|
|
"description": {{ $page.Summary | plainify | jsonify }}
|
2021-01-05 16:40:02 +01:00
|
|
|
}
|
|
|
|
{{ end }}
|
|
|
|
]
|