forked from metabase/docs.metabase.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathglossary-search.html
More file actions
29 lines (27 loc) · 818 Bytes
/
glossary-search.html
File metadata and controls
29 lines (27 loc) · 818 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
---
layout: glossary-entry
title: "Search results"
---
<div class="bootstrap">
<ul id="search-results"></ul>
</div>
<script>
window.glossaryStore = {
{% for page in site.glossary %}
{% if page.title != null and
page.title != empty %}
"{{ page.url | slugify }}": {
"title": {{page.title | jsonify}},
"content": {{page.content | strip_html | jsonify}},
"url": {{ page.url | replace: 'index.html', '' | jsonify }},
"date": {{ page.date | jsonify }},
"excerpt": {{ page.content | markdownify | strip_html | slice: 0, 150 | jsonify }},
"search_omit": "{{ page.search_omit }}"
}
{% unless forloop.last %},{% endunless %}
{% endif %}
{% endfor %}
};
</script>
<script src="/js/lunr.min.js"></script>
<script src="/js/glossary-search.js"></script>