diff --git a/site/theme/template/Content/MainContent.jsx b/site/theme/template/Content/MainContent.jsx
index cc2071a4be..d420708642 100644
--- a/site/theme/template/Content/MainContent.jsx
+++ b/site/theme/template/Content/MainContent.jsx
@@ -84,7 +84,7 @@ export default class MainContent extends React.Component {
const disabled = item.disabled;
const url = item.filename.replace(/(\/index)?((\.zh-CN)|(\.en-US))?\.md$/i, '').toLowerCase();
const child = !item.link ?
-
+
{text}
:
diff --git a/site/theme/template/Home/Banner.jsx b/site/theme/template/Home/Banner.jsx
index 73f4ffa194..c884c8e14f 100644
--- a/site/theme/template/Home/Banner.jsx
+++ b/site/theme/template/Home/Banner.jsx
@@ -16,7 +16,8 @@ function typeFunc(a) {
return 'left';
}
-export default function Banner() {
+export default function Banner({ location }) {
+ const query = location.query;
return (
@@ -25,10 +26,10 @@ export default function Banner() {
-
+
-
+
diff --git a/site/theme/template/Home/Page1.jsx b/site/theme/template/Home/Page1.jsx
index 06112c4fb5..d25792bfd8 100644
--- a/site/theme/template/Home/Page1.jsx
+++ b/site/theme/template/Home/Page1.jsx
@@ -18,7 +18,7 @@ function onScrollEvent(e) {
}
}
-export default function Page1() {
+export default function Page1({ location }) {
return (
-
+