Welcome to mirror list, hosted at ThFree Co, Russian Federation.

data.json « search « assets - github.com/thegeeklab/hugo-geekdoc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 26f24633cb8b942ba472a9c021cd7104a5f53743 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
[
  {{ 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 }}
    }
  {{ end }}
]