forked from viktorsmari/piratar-jekyll
-
Notifications
You must be signed in to change notification settings - Fork 0
/
search_data.json
26 lines (25 loc) · 946 Bytes
/
search_data.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
---
layout: null
---
{
{% for post in site.posts %}
"{{ post.url | slugify }}": {
"title": "{{ post.title | xml_escape }}",
"content" : "{{post.content | strip_html | strip_newlines | remove: " " | escape | remove: "\"}}",
"url": " {{ post.url | relative_url | xml_escape }}",
"author": "{{ post.author | xml_escape }}",
"categories": "{% for category in post.categories %}{{ category }}{% unless forloop.last %}, {% endunless %}{% endfor %}"
},
{% unless forloop.last %},{% endunless %}
{% endfor %}
{% for post in site.pages %}
"{{ post.url | relative_url | slugify }}": {
"title": "{{ post.title | xml_escape }}",
"author": "{{ post.author | xml_escape }}",
"category": "{{ post.category | xml_escape }}",
"content": {{ post.content | strip_html | strip_newlines | jsonify }},
"url": "{{ post.url | relative_url | xml_escape }}"
}
{% unless forloop.last %},{% endunless %}
{% endfor %}
}