Add Lunr Search (#1353)
* Add `search.html` layout and JavaScript * Move `{{ content }}` before search input * Add spaces for consistency Close #1011
This commit is contained in:

committed by
Michael Rose

parent
7978376df0
commit
cc3b21bc86
@ -11,5 +11,10 @@
|
||||
<script src="{{ '/assets/js/main.min.js' | absolute_url }}"></script>
|
||||
{% endif %}
|
||||
|
||||
{% if page.layout == 'search' %}
|
||||
<script src="{{ '/assets/js/lunr.min.js' | absolute_url }}"></script>
|
||||
<script src="{{ '/assets/js/lunr-en.js' | absolute_url }}"></script>
|
||||
{% endif %}
|
||||
|
||||
{% include analytics.html %}
|
||||
{% include /comments-providers/scripts.html %}
|
||||
|
Reference in New Issue
Block a user