forked from daattali/beautiful-jekyll
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsearch.json
More file actions
24 lines (24 loc) · 1.27 KB
/
search.json
File metadata and controls
24 lines (24 loc) · 1.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
---
layout: null
permalink: /assets/data/searchcorpus.json
---
[
{% for post in site.posts %}
{
"title" : "{% if post.title != "" %}{{ post.title | strip_html | escape }}{% else %}{{ post.excerpt | strip_html | escape | strip }}{%endif%}",
"desc" : "{% if post.title != "" %}{{ post.title | strip_html | escape }}{% else %}{{ post.excerpt | strip_html | escape | strip }}{%endif%}",
"category" : "{{ post.tags | join: ', ' }}",
"url" : "{{ site.baseurl }}{{ post.url | escape }}",
"date" : "{{ post.date | date: "%B %e, %Y" | default: "January 1, 1970" }}"
},
{% endfor %}
{% for page in site.html_pages %}{% if page.title != "{title}" and page.title != "404 - Page not found" %}
{
"title" : "{% if page.title != "" %}{{ page.title | strip_html | escape }}{% else %}{{ page.excerpt | strip_html | escape | strip }}{% endif %}",
"desc" : "{% if page.title != "" %}{{ page.title | strip_html | escape }}{% else %}{{ page.excerpt | strip_html | escape | strip }}{% endif %}",
"category" : "{% if page.tags %}{{ page.tags | join: ', ' }}{% else %}page{% endif %}",
"url" : "{{ site.baseurl }}{{ page.url }}",
"date" : "{{ page.date | date: '%B %e, %Y' | default: "January 1, 1970" }}"
}{% unless forloop.last %},{% endunless %}
{% endif %}{% endfor %}
]