From 95d129b089ddf5145b94cf481265d2ae8ceac703 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Sat, 15 Jul 2017 17:42:45 +0100 Subject: [PATCH] Add more things to json data files --- layouts/_default/single.json | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/layouts/_default/single.json b/layouts/_default/single.json index f485230..d5c34d4 100644 --- a/layouts/_default/single.json +++ b/layouts/_default/single.json @@ -1,11 +1,11 @@ { "id": "{{ .UniqueID }}", "title": "{{ .Title }}", - "date": "{{ .Date }}", + "date_published": "{{ .Date }}", "image": "{{ absURL .Params.image }}", - "permalink": "{{ .Permalink }}", - "wordCount": "{{ .WordCount }}", - "linkTitle": "{{ .LinkTitle }}", - "section": "{{ .Section }}", - "content": "{{ .Permalink }}index.txt" + "url": "{{ .Permalink }}", + "content_html": {{ .Content | jsonify }}, + "content_text": {{ .RawContent | jsonify }}, + "summary": {{ .Summary | jsonify }}, + "banner_image": "{{ absURL .Params.image }}" }