1
Fork 0

Add JSON output format for pages

This commit is contained in:
Jake Howard 2017-07-14 21:24:06 +01:00
parent 8723adeec1
commit fdc285bf02
Signed by: jake
GPG key ID: 57AFB45680EDD477
2 changed files with 12 additions and 0 deletions

View file

@ -26,6 +26,7 @@ outputs:
page: page:
- "html" - "html"
- "txt" - "txt"
- "json"
staticDir: "static/build" staticDir: "static/build"

View file

@ -0,0 +1,11 @@
{
"id": "{{ .UniqueID }}",
"title": "{{ .Title }}",
"date": "{{ .Date }}",
"image": "{{ absURL .Params.image }}",
"permalink": "{{ .Permalink }}",
"wordCount": "{{ .WordCount }}",
"linkTitle": "{{ .LinkTitle }}",
"section": "{{ .Section }}",
"content": "{{ .Permalink }}index.txt"
}