From 5fd7db2b7fcd947d77c97b1e9bdaf83845c1321d Mon Sep 17 00:00:00 2001 From: Evan You Date: Thu, 7 Oct 2021 17:13:11 -0400 Subject: [PATCH] fix(theme): fix algolia search filter --- src/client/theme-default/Layout.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/client/theme-default/Layout.vue b/src/client/theme-default/Layout.vue index b4b6025f6ca7..f14ed8ee2ca1 100644 --- a/src/client/theme-default/Layout.vue +++ b/src/client/theme-default/Layout.vue @@ -31,6 +31,9 @@ const isCustomLayout = computed(() => !!frontmatter.value.customLayout) // home const enableHome = computed(() => !!frontmatter.value.home) +// automatic multilang check for AlgoliaSearchBox +const isMultiLang = computed(() => Object.keys(site.value.langs).length > 1) + // navbar const showNavbar = computed(() => { const themeConfig = theme.value @@ -85,7 +88,7 @@ const pageClasses = computed(() => {