summaryrefslogtreecommitdiffstats
path: root/assets
diff options
context:
space:
mode:
authorSerghei Iakovlev <egrep@protonmail.ch>2022-07-17 12:46:27 +0200
committerSerghei Iakovlev <egrep@protonmail.ch>2022-07-17 12:46:27 +0200
commit4c76f05065c4eb7b12695470b0f32c764a5bb250 (patch)
tree545e1689fa645d57fa6f9887411128e3827932b6 /assets
parentbe4957a05dfc36f870e608f119a878f911a4d48c (diff)
downloadgohugo-theme-ed-4c76f05065c4eb7b12695470b0f32c764a5bb250.tar.gz
Setup English for search index
Diffstat (limited to 'assets')
-rw-r--r--assets/js/search.js7
1 files changed, 1 insertions, 6 deletions
diff --git a/assets/js/search.js b/assets/js/search.js
index 6cca4a5..b0855d2 100644
--- a/assets/js/search.js
+++ b/assets/js/search.js
@@ -14,13 +14,8 @@ async function initSearchIndex() {
searchIndex = lunr(function () { // eslint-disable-line no-undef
// Set up the pipeline for indexing content in multiple languages
if (Array.isArray(searchConfig.lunrLanguages)) {
- // Lunr has full support for the indexing and searching of
- // documents in English. So no need add 'en'.
- let langs = searchConfig.lunrLanguages.slice();
- langs = langs.filter(lang => lang !== 'en');
-
const pipeline = lunr.multiLanguage( // eslint-disable-line no-undef
- ...langs
+ ...searchConfig.lunrLanguages
);
this.use(pipeline);