forked from thedevslot/WhatATheme
-
Notifications
You must be signed in to change notification settings - Fork 0
/
search.json
17 lines (17 loc) · 685 Bytes
/
search.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
---
layout: compress
---
[
{% for post in site.posts %}
{
"title" : "{{ post.title | escape }}",
"tags" : "{{ post.tags | join: ', ' }}",
"url" : "{{ site.url }}{{ site.baseurl }}{{ post.url }}",
"date" : "{{ post.date | date: '%-B %d, %Y' }}",
"description" : "{{ post.description | strip_newlines | strip_html | strip | escape }}",
"content" : "{{ post.content | truncate: '300' | strip_html | strip_newlines | strip | escape }}",
"image" : "{{post.post-image}}",
"readtime" : "{{ post.content | number_of_words | divided_by:180 }}"
} {% unless forloop.last %},{% endunless %}
{% endfor %}
]