Add search support

Only supports elasticlunr_json
This commit is contained in:
daudix
2024-06-30 02:58:21 +03:00
parent 78b37ef30c
commit 3eaa81e755
15 changed files with 362 additions and 34 deletions

View File

@ -46,7 +46,12 @@
{%- include "partials/copy_button.html" %}
{%- endif %}
{%- set scripts = [] %}
{%- if config.build_search_index %}
{%- include "partials/search.html" %}
{%- set scripts = ["elasticlunr.min.js"] %}
{%- else %}
{%- set scripts = [""] %}
{%- endif %}
{%- if config.extra.scripts %}
{%- set scripts = config.extra.scripts %}