mirror of
https://github.com/thegeeklab/hugo-geekdoc.git
synced 2024-11-28 23:50:36 +00:00
d34fb0993e
Fixes #42
13 lines
372 B
JSON
13 lines
372 B
JSON
[
|
|
{{ range $index, $page := .Site.Pages }}
|
|
{{ 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 }}
|
|
]
|