diff --git a/config.yml b/config.yml index 45861de..546a8bd 100644 --- a/config.yml +++ b/config.yml @@ -26,6 +26,7 @@ outputs: page: - "html" - "txt" + - "json" staticDir: "static/build" diff --git a/layouts/_default/single.json b/layouts/_default/single.json new file mode 100644 index 0000000..f485230 --- /dev/null +++ b/layouts/_default/single.json @@ -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" +}