From a210dc58b5da9b43a112adae1d0ed28b1f3d3976 Mon Sep 17 00:00:00 2001 From: Martijn de Boer Date: Mon, 7 Jan 2019 21:38:08 +0100 Subject: [PATCH] quick writeup --- README | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/README b/README index ee16e01..5bc21a7 100644 --- a/README +++ b/README @@ -24,6 +24,22 @@ And create a JSON output in your theme folder called index.json: {{- $.Scratch.Get "index" | jsonify -}} ``` +The json format should be like this: +``` +[ + { + "body": "Textual contents of item 1", + "title": "Item 1", + "uri": "/items/1" + }, + { + "body": "Textual contents of item 2", + "title": "Item 2", + "uri": "/items/2" + }, +] +``` + This removes a bit of formatting too agressively but alas. LICENSE;