diff options
Diffstat (limited to 'site.json')
-rw-r--r-- | site.json | 25 |
1 files changed, 25 insertions, 0 deletions
@@ -2,7 +2,13 @@ --- { "posts": [ + {% assign filtered_posts = "" | split:"" %} {% for post in site.posts %} + {% unless post.plaintext %} + {% assign filtered_posts = filtered_posts | push:post %} + {% endunless %} + {% endfor %} + {% for post in filtered_posts %} { "title": "{{ post.title | smartify }}", "date": "{{ post.date }}", @@ -15,19 +21,32 @@ {% endfor %} ], "pages": [ + {% assign filtered_pages = "" | split:"" %} {% for page in site.pages %} + {% unless page.plaintext %} + {% assign filtered_pages = filtered_pages | push:page %} + {% endunless %} + {% endfor %} + {% for page in filtered_pages %} { "title": "{{ page.title | smartify }}", "url": "{{ page.url }}", "lang": "{{ page.lang }}", "ref": "{{ page.ref }}", + "plaintext": "{{ page.plaintext }}", "layout": "page", "content": {{ page.content | strip_html | jsonify }} }{% unless forloop.last %},{% endunless %} {% endfor %} ], "pastebins": [ + {% assign filtered_pastebins = "" | split:"" %} {% for pastebin in site.pastebins %} + {% unless pastebin.plaintext %} + {% assign filtered_pastebins = filtered_pastebins | push:pastebin %} + {% endunless %} + {% endfor %} + {% for pastebin in filtered_pastebins %} { "title": "{{ pastebin.title | smartify }}", "date": "{{ pastebin.date }}", @@ -40,6 +59,12 @@ {% endfor %} ], "tils": [ + {% assign filtered_tils = "" | split:"" %} + {% for til in site.tils %} + {% unless til.plaintext %} + {% assign filtered_tils = filtered_tils | push:til %} + {% endunless %} + {% endfor %} {% for til in site.tils %} { "title": "{{ til.title | smartify }}", |