1
0
mirror of https://github.com/ru-de/faq.git synced 2024-12-23 09:21:49 +00:00
faq-de/search.html
Evgeniy Sokolov 5ef8f27e0f gh-pages
2018-01-02 19:12:55 +01:00

25 lines
765 B
HTML

---
layout: default
---
<ul id="search-results"></ul>
<script>
window.store = {
{% for page in site.pages %}
{% if page.url contains 'pages/' %}
"{{ page.url | slugify }}": {
"title": "{{ page.title | xml_escape }}",
"author": "{{ page.author | xml_escape }}",
"category": "{{ page.category | xml_escape }}",
"content": {{ page.content | strip_html | strip_newlines | jsonify }},
"url": "{{ page.url | relative_url }}"
}
{% unless forloop.last %},{% endunless %}
{% endif %}
{% endfor %}
};
var assetsUrl = "{{ '/assets' | relative_url }}";
</script>
<script src="{{ "assets/require.js" | relative_url }}"></script>
<script src="{{ "assets/search.js" | relative_url }}"></script>