aboutsummaryrefslogblamecommitdiff
path: root/site.json
blob: 2a27e8d93ef74bbe4cf3192fb31c20fb4a96855f (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11



            
                                               
                                




                                                                

                                               
                                  


                                  
                                      




                                                            
                                               
                                




                                                                




                                               
                                            
                                      


                                                            

                
                                                   
                                        




                                                                            

                                                   
                                      

                                      
                              
                                          


                                                                

           





                                                             






                                              
                                     


                                                           

   
---
---
{
  "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 }}",
        "url": "{{ post.url }}",
        "lang": "{{ post.lang }}",
        "ref": "{{ post.ref }}",
        "layout": "{{ post.layout }}",
        "content": {{ post.content | strip_html | jsonify }}
      }{% unless forloop.last %},{% endunless %}
    {% 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.layout }}",
        "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 }}",
        "url": "{{ pastebin.url }}",
        "lang": "{{ pastebin.lang }}",
        "ref": "pastebin-ref",
        "layout": "{{ pastebin.layout }}",
        "content": {{ pastebin.content | strip_html | jsonify }}
      }{% unless forloop.last %},{% endunless %}
    {% 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 }}",
        "date": "{{ til.date }}",
        "url": "{{ til.url }}",
        "lang": "{{ til.lang }}",
        "ref": "{{ til.ref }}",
        "layout": "{{ til.layout }}",
        "content": {{ til.content | strip_html | jsonify }}
      }{% unless forloop.last %},{% endunless %}
    {% endfor %}
  ]
}