blob: c7e895ce7eeb4ac66de322a2c788483ab335df2b [file] [log] [blame]
---
permalink: search.json
---
[
{% for section in site.data.docs %}
{% for item in section.docs %}
{% assign item_url = item | prepend:"/docs/" | append:"/" %}
{% assign p = site.docs | where:"url", item_url | first %}
{
"title": "{{ p.title }}",
"url": "{{ p.url | relative_url }}"
},
{% endfor %}
{% endfor %}
{% for post in site.posts %}
{
"title": "{{ post.title | escape }}",
"url": "{{ post.url | relative_url }}"
}{% unless forloop.last %},{% endunless %}
{% endfor %}
]