From 12ab03e05d9f80e982c10ba5be835654f7c79bc8 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Sun, 7 Jan 2018 15:54:41 +0000 Subject: [PATCH] Cleanup JSON data --- layouts/partials/page_data.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/layouts/partials/page_data.json b/layouts/partials/page_data.json index f400eb8..5cbe072 100644 --- a/layouts/partials/page_data.json +++ b/layouts/partials/page_data.json @@ -2,12 +2,12 @@ "id": "{{ .UniqueID }}", "title": "{{ .Title }}", "image": "{{ absURL .Params.image }}", - "date": "{{ .Date }}", + "date": "{{ .Date.Format .Site.Params.iso8601 }}", "url": "{{ .Permalink }}", "link": "{{ .RelPermalink }}", "link_title": "{{ .LinkTitle }}", - "content_html": {{ jsonify (.Content | plainify | chomp | htmlUnescape) }}, - "content_text": {{ jsonify .RawContent }}, + "content": {{ jsonify .RawContent }}, + "content_html": {{ jsonify (.Content | chomp) }}, "summary": {{ jsonify (.Summary | plainify | chomp | htmlUnescape) }}, "words": {{ .FuzzyWordCount }}, "reading_time": {{ .ReadingTime }},