diff options
Diffstat (limited to 'site.json')
-rw-r--r-- | site.json | 18 |
1 files changed, 17 insertions, 1 deletions
@@ -9,6 +9,7 @@ "url": "{{ post.url }}", "lang": "{{ post.lang }}", "ref": "{{ post.ref }}", + "layout": "post", "content": {{ post.content | strip_html | jsonify }} }{% unless forloop.last %},{% endunless %} {% endfor %} @@ -20,6 +21,7 @@ "url": "{{ page.url }}", "lang": "{{ page.lang }}", "ref": "{{ page.ref }}", + "layout": "page", "content": {{ page.content | strip_html | jsonify }} }{% unless forloop.last %},{% endunless %} {% endfor %} @@ -28,12 +30,26 @@ {% for pastebin in site.pastebins %} { "title": "{{ pastebin.title | smartify }}", - "date": "{{ post.date }}", + "date": "{{ pastebin.date }}", "url": "{{ pastebin.url }}", "lang": "{{ pastebin.lang }}", "ref": "pastebin-ref", + "layout": "pastebin", "content": {{ pastebin.content | strip_html | jsonify }} }{% unless forloop.last %},{% endunless %} {% endfor %} + ], + "tils": [ + {% for til in site.tils %} + { + "title": "{{ til.title | smartify }}", + "date": "{{ til.date }}", + "url": "{{ til.url }}", + "lang": "{{ til.lang }}", + "ref": "{{ til.ref }}", + "layout": "til", + "content": {{ til.content | strip_html | jsonify }} + }{% unless forloop.last %},{% endunless %} + {% endfor %} ] } |