1
Fork 0

Add page list json file

This commit is contained in:
Jake Howard 2017-09-16 23:13:02 +01:00
parent 12aec1a9b2
commit 99a4b9f4d9
Signed by: jake
GPG key ID: 57AFB45680EDD477
2 changed files with 15 additions and 0 deletions

View file

@ -19,6 +19,7 @@ outputs:
home: home:
- "html" - "html"
- "rss" - "rss"
- "json"
section: section:
- "html" - "html"
- "rss" - "rss"

View 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 }}
}