This is an automated email from the ASF dual-hosted git repository.
morningman pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-doris.git
The following commit(s) were added to refs/heads/master by this push:
new 68c87de [fix](website) fix CaseList component bug (#7683)
68c87de is described below
commit 68c87de69e3b924688527ab2ce05b53e18d0dfeb
Author: wangyongfeng <[email protected]>
AuthorDate: Mon Jan 10 14:46:05 2022 +0800
[fix](website) fix CaseList component bug (#7683)
---
docs/.vuepress/components/CaseList.vue | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/docs/.vuepress/components/CaseList.vue
b/docs/.vuepress/components/CaseList.vue
index b1b14c3..a899489 100644
--- a/docs/.vuepress/components/CaseList.vue
+++ b/docs/.vuepress/components/CaseList.vue
@@ -53,7 +53,10 @@ export default {
data() {
const lang = this.$lang
const homePages = this.$site.pages.filter(page => page.title === 'Home')
- const currentHomePage = homePages.find(page => page.path.indexOf(lang) >
-1)
+ const currentHomePage = homePages.find(page => {
+ const pageLang = page.path.indexOf('zh-CN') > -1 ? 'zh-CN' : 'en'
+ return pageLang === lang
+ })
return currentHomePage.frontmatter
},
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]