mirror of
https://github.com/thegeeklab/hugo-geekdoc.git
synced 2024-11-16 18:00:39 +00:00
13 lines
416 B
JSON
13 lines
416 B
JSON
[
|
|
{{ range $index, $page := (where .Site.Pages "Params.geekdocprotected" "ne" true) }}
|
|
{{ 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 }}
|
|
]
|