forked from TrueCloudLab/distribution
e2ae76f1f2
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
13 lines
491 B
JSON
13 lines
491 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 }},
|
|
"description": {{ $page.Summary | plainify | jsonify }}
|
|
}
|
|
{{ end }}
|
|
]
|