diff options
Diffstat (limited to 'search.json')
-rw-r--r-- | search.json | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/search.json b/search.json new file mode 100644 index 0000000..73c32f4 --- /dev/null +++ b/search.json @@ -0,0 +1,14 @@ +--- +--- +[ + {% for post in site.posts %}{% unless post.layout == "encrypt" %} + { + "title" : "{{ post.title | escape }}", + "category" : "{{ post.category }}", + "tags" : "{{ post.tags | join: ', ' }}", + "url" : "{{ site.baseurl }}{{ post.url }}", + "date" : "{{ post.date | date: "%Y/%m/%d" }}", + "content": {{ post.content | strip_html | strip_newlines | jsonify }} + }{% unless forloop.last %},{% endunless %}{% endunless %} + {% endfor %} +] |