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(() => {