diff --git a/themes/gitbook/components/LoadingCover.js b/themes/gitbook/components/LoadingCover.js
deleted file mode 100644
index f74757ef..00000000
--- a/themes/gitbook/components/LoadingCover.js
+++ /dev/null
@@ -1,7 +0,0 @@
-export default function LoadingCover() {
- return
-}
diff --git a/themes/gitbook/index.js b/themes/gitbook/index.js
index 5d4255e1..ca82dd52 100644
--- a/themes/gitbook/index.js
+++ b/themes/gitbook/index.js
@@ -3,6 +3,7 @@
import Comment from '@/components/Comment'
import { AdSlot } from '@/components/GoogleAdsense'
import Live2D from '@/components/Live2D'
+import LoadingCover from '@/components/LoadingCover'
import NotionIcon from '@/components/NotionIcon'
import NotionPage from '@/components/NotionPage'
import ShareBar from '@/components/ShareBar'
@@ -113,6 +114,11 @@ const LayoutBase = props => {
setFilteredNavPages(getNavPagesWithLatest(allNavPages, latestPosts, post))
}, [router])
+ const GITBOOK_LOADING_COVER = siteConfig(
+ 'GITBOOK_LOADING_COVER',
+ true,
+ CONFIG
+ )
return (
{
)}
+ {GITBOOK_LOADING_COVER && }
+
{/* 移动端导航抽屉 */}