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 (