quick writeup
This commit is contained in:
parent
4862963d1d
commit
a210dc58b5
1 changed files with 16 additions and 0 deletions
16
README
16
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;
|
||||
|
|
Reference in a new issue