github.com/gemaraproj/gemara@v1.3.0

docs/search.json raw

 1---
 2layout: null
 3sitemap: false
 4permalink: /search.json
 5---
 6[
 7{%- assign indexable = site.pages | where_exp: "p", "p.title" | where_exp: "p", "p.search != false" -%}
 8{%- for page in indexable -%}
 9{%- unless forloop.first -%},{%- endunless %}
10  {
11    "title": {{ page.title | jsonify }},
12    "url": {{ page.url | relative_url | jsonify }},
13    "content": {{ page.content | strip_html | strip_newlines | truncate: 1000 | jsonify }}
14  }
15{%- endfor %}
16]