-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsearch.json
21 lines (21 loc) · 1.06 KB
/
search.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
---
layout: compress_json
---
[
{% for post in site.posts %}
{
"title" : "{{ post.title | escape }}",
"title_s" : "{{ post.title | escape | slugify: 'latin' }}",
"category" : "{{ post.categories | array_to_sentence_string }}",
"category_s" : "{{ post.categories | array_to_sentence_string | slugify: 'latin' }}",
"url" : "{{ site.url }}{{ site.baseurl }}{{ post.url }}",
"date" : "{{ post.date | localize: '%d %B %Y' }}",
"description" : "{{ post.description | strip_newlines | strip_html | strip | escape }}",
"description_s" : "{{ post.description | strip_newlines | strip_html | strip | escape | slugify: 'latin' }}",
"content" : "{{ post.content | truncate: '300' | strip_html | strip_newlines | strip | escape }}",
"content_s" : "{{ post.content | strip_html | strip_newlines | strip | escape | slugify: 'latin' }}",
"image" : "{{post.post-image}}",
"readtime" : "{{ post.content | number_of_words | divided_by:180 }}"
} {% unless forloop.last %},{% endunless %}
{% endfor %}
]