Add template for storing docs info based on jekyll front matter

This commit is contained in:
AhyoungRyu 2016-08-03 04:13:25 +09:00
parent 0705bd6bea
commit 040f53244c

17
docs/search_data.json Normal file
View file

@ -0,0 +1,17 @@
---
layout: null
---
{
{% for page in site.pages %}{% if page.title != nil %}
"{{ page.url | slugify }}": {
"title": "{{ page.title | xml_escape }}",
"content" : "{{page.content | strip_html | strip_newlines | remove: " " | escape | remove: "\"}}",
"url": " {{ page.url | xml_escape }}",
"group": "{{ page.group }}",
"excerpt": {{ page.description | strip_html | truncatewords: 40 | jsonify }}
}
{% unless forloop.last %},{% endunless %}
{% endif %}
{% endfor %}
}