Add page list json file
This commit is contained in:
parent
12aec1a9b2
commit
99a4b9f4d9
2 changed files with 15 additions and 0 deletions
|
@ -19,6 +19,7 @@ outputs:
|
|||
home:
|
||||
- "html"
|
||||
- "rss"
|
||||
- "json"
|
||||
section:
|
||||
- "html"
|
||||
- "rss"
|
||||
|
|
14
layouts/_default/list.json
Normal file
14
layouts/_default/list.json
Normal file
|
@ -0,0 +1,14 @@
|
|||
{
|
||||
{{ range $i, $e := .Data.Pages.ByTitle }}
|
||||
{{ if $i }}, {{ end }}
|
||||
"{{ .RelPermalink }}": {
|
||||
"id": "{{ .UniqueID }}",
|
||||
"title": "{{ lower .Title }}",
|
||||
"date": "{{ .Date }}",
|
||||
"url": "{{ .Permalink }}",
|
||||
"link": "{{ .RelPermalink }}",
|
||||
"link_title": "{{ .LinkTitle }}"
|
||||
"parent": "{{ if .Parent }}{{ lower .Parent.Title }}{{ end }}"
|
||||
}
|
||||
{{ end }}
|
||||
}
|
Loading…
Reference in a new issue