-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsearch.json
More file actions
22 lines (20 loc) · 840 Bytes
/
search.json
File metadata and controls
22 lines (20 loc) · 840 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
---
---
[
{% for post in site.posts %}
{
"title" : "{% if post.title != "" %}{{ post.title | escape }}{% else %}{{ post.excerpt | strip_html | escape | strip }}{%endif%}",
"url" : "{{ site.baseurl }}{{ post.url }}",
"category" : "{{ post.categories | join: ', '}}",
"date" : "{{ post.date | date: "%B %e, %Y" }}"
} {% unless forloop.last %},{% endunless %}
{% endfor %},
{% for event in site.events %}
{
"title" : "{% if event.title != "" %}{{ event.title | escape }}{% else %}{{ event.excerpt | strip_html | escape | strip }}{%endif%}",
"url" : "{{ site.baseurl }}{{ event.url }}",
"category" : "{{ event.categories | join: ', '}}",
"date" : "{{ event.date | date: "%B %e, %Y" }}"
} {% unless forloop.last %},{% endunless %}
{% endfor %}
]