mirror of
https://github.com/welpo/tabi.git
synced 2026-03-14 12:07:19 +01:00
🐛 fix: support Japanese search
This commit is contained in:
parent
d73e64032b
commit
2f62948e98
7 changed files with 1632 additions and 121 deletions
|
|
@ -173,6 +173,9 @@
|
|||
{# Support correct stemming and stop word filtering in non-English search #}
|
||||
{%- if lang != "en" -%}
|
||||
<script defer src="{{ get_url(path='js/lunr/lunrStemmerSupport.min.js') | safe }}"></script>
|
||||
{%- if lang == "ja" -%}
|
||||
<script defer src="{{ get_url(path='js/lunr/tinyseg.min.js') | safe }}"></script>
|
||||
{%- endif -%}
|
||||
<script defer src="{{ get_url(path='js/lunr/lunr.' ~ lang ~ '.min.js') | safe }}"></script>
|
||||
{%- endif -%}
|
||||
{%- endif -%}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue