fix(docs): algolia searching (#5926)

* fix(docs): algolia searching

- Fix algolia searching hit component
- Comment the code which is not used and causing warning in dev mode

* Fix Linter complains
This commit is contained in:
jeremywu 2022-02-10 17:30:00 +08:00 committed by GitHub
parent bcd5c8b848
commit 5c095d3a13
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 16 additions and 17 deletions

View File

@ -108,7 +108,7 @@ useEventListener(window, 'scroll', handleScroll)
<template> <template>
<div ref="target" class="home-page"> <div ref="target" class="home-page">
<template v-if="isBeforeRelease"> <!-- <template v-if="isBeforeRelease">
<div class="banner"> <div class="banner">
<div class="banner-desc banner-dot"> <div class="banner-desc banner-dot">
<h1> <h1>
@ -152,27 +152,25 @@ useEventListener(window, 'scroll', handleScroll)
</div> </div>
</div> </div>
</div> </div>
</template> </template> -->
<template v-else> <div class="banner">
<div class="banner"> <div class="banner-desc">
<div class="banner-desc"> <h1>{{ homeLang['title'] }}</h1>
<h1>{{ homeLang['title'] }}</h1> <p>{{ homeLang['title_sub'] }}</p>
<p>{{ homeLang['title_sub'] }}</p>
</div>
</div> </div>
<div ref="jumbotronRef" class="jumbotron"> </div>
<div :style="containerStyle"> <div ref="jumbotronRef" class="jumbotron">
<div :style="cardStyle"> <div :style="containerStyle">
<div class="banner" :style="layer0"> <div :style="cardStyle">
<img src="/images/theme-index-blue.png" alt="banner" /> <div class="banner" :style="layer0">
<div class="jumbotron-red" :style="jumbotronRedStyle"> <img src="/images/theme-index-blue.png" alt="banner" />
<img src="/images/theme-index-red.png" alt="" /> <div class="jumbotron-red" :style="jumbotronRedStyle">
</div> <img src="/images/theme-index-red.png" alt="" />
</div> </div>
</div> </div>
</div> </div>
</div> </div>
</template> </div>
<div class="sponsors-container"> <div class="sponsors-container">
<div class="sponsors-list"> <div class="sponsors-list">
<a <a

View File

@ -134,6 +134,7 @@ function initialize(userOptions: any) {
}, },
children, children,
}, },
__v: null,
} }
}, },
}) })