2021-01-05 15:40:02 +00:00
|
|
|
[
|
2021-05-06 19:42:45 +00:00
|
|
|
{{ range $index, $page := (where .Site.Pages "Params.GeekdocProtected" "ne" true) }}
|
2021-01-05 15:40:02 +00:00
|
|
|
{{ if ne $index 0 }},{{ end }}
|
|
|
|
{
|
|
|
|
"id": {{ $index }},
|
|
|
|
"href": "{{ $page.RelPermalink }}",
|
2022-02-07 09:57:43 +00:00
|
|
|
"title": {{ (partial "utils/title" $page) | jsonify }},
|
|
|
|
"parent": {{ with $page.Parent }}{{ (partial "utils/title" .) | jsonify }}{{ else }}""{{ end }},
|
2022-12-07 07:57:41 +00:00
|
|
|
"content": {{ $page.Plain | jsonify }},
|
|
|
|
"description": {{ $page.Summary | plainify | jsonify }}
|
2021-01-05 15:40:02 +00:00
|
|
|
}
|
|
|
|
{{ end }}
|
|
|
|
]
|