brouilleursdeblanc/search.json
Michael Rose a9ab8b7bf7 Remove search overlay
- Fixes #88
- Replace overlay with dedicated search page (see /search/index.md)
- Replace simpleJekyllSearch.js
- Include pages in search.json index
2015-01-22 10:20:09 -05:00

25 lines
755 B
JSON

---
sitemap: false
---
[
{% for post in site.posts %}
{% if post.title != null and post.title != empty and post.search_omit != true %}
{% if forloop.index > 1 %},{% endif %}{
"title" : {{ post.title | jsonify }},
"link" : "{{ site.url }}{{ post.url }}",
"excerpt" : "{{ post.excerpt }}"
}
{% endif %}
{% endfor %}
{% for page in site.pages %}
{% if page.layout != 'none' and page.layout != 'none' and page.title != null and page.title != empty and page.search_omit != true %}
{% if forloop.index > 1 %},{% endif %}{
"title" : {{ page.title | jsonify }},
"link" : "{{ site.url }}{{ page.url | replace: 'index.html', '' }}",
"excerpt" : "{{ page.excerpt }}"
}
{%endif%}
{% endfor %}
]