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

list.json « _default « layouts - github.com/matsuyoshi30/harbor.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 618a67ace7346c76b6f3b1f70678c09103171baf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
[
    {{ range $index, $page := .Pages }}
        {{ if eq .Type "post" }}
        {{ if ne $index 0 }},{{ end }}
            {
                "id": $index,
                "ref": "{{ $page.Permalink }}",
                "title": {{ $page.Title | jsonify }},
                "section": "{{ $page.Section }}",
                "date" : {{ $page.Date.Format "2006.01.02" | jsonify }},
                "body": {{ $page.Plain | jsonify }}
            }
        {{ end }}
    {{ end }}
]