diff --git a/themes/example/index.js b/themes/example/index.js index d78e20a4..412366e1 100644 --- a/themes/example/index.js +++ b/themes/example/index.js @@ -156,6 +156,7 @@ const LayoutPostList = props => { const LayoutSlug = props => { const { post, lock, validPassword } = props const router = useRouter() + const waiting404 = siteConfig('POST_WAITING_TIME_FOR_404') * 1000 useEffect(() => { // 404 if (!post) { @@ -170,7 +171,7 @@ const LayoutSlug = props => { } } }, - siteConfig('POST_WAITING_TIME_FOR_404') * 1000 + waiting404 ) } }, [post]) diff --git a/themes/fukasawa/index.js b/themes/fukasawa/index.js index 0e2cf9d3..d184f1f9 100644 --- a/themes/fukasawa/index.js +++ b/themes/fukasawa/index.js @@ -137,6 +137,7 @@ const LayoutPostList = props => { const LayoutSlug = props => { const { post, lock, validPassword } = props const router = useRouter() + const waiting404 = siteConfig('POST_WAITING_TIME_FOR_404') * 1000 useEffect(() => { // 404 if (!post) { @@ -151,7 +152,7 @@ const LayoutSlug = props => { } } }, - siteConfig('POST_WAITING_TIME_FOR_404') * 1000 + waiting404 ) } }, [post]) diff --git a/themes/gitbook/index.js b/themes/gitbook/index.js index b737e9f8..47598cf1 100644 --- a/themes/gitbook/index.js +++ b/themes/gitbook/index.js @@ -316,6 +316,7 @@ const LayoutSlug = props => { ? `${post?.title} | ${siteInfo?.description}` : `${post?.title} | ${siteInfo?.title}` + const waiting404 = siteConfig('POST_WAITING_TIME_FOR_404') * 1000 useEffect(() => { // 404 if (!post) { @@ -332,7 +333,7 @@ const LayoutSlug = props => { } } }, - siteConfig('POST_WAITING_TIME_FOR_404') * 1000 + waiting404 ) } }, [post]) diff --git a/themes/heo/index.js b/themes/heo/index.js index b3c966ed..93a7dabb 100644 --- a/themes/heo/index.js +++ b/themes/heo/index.js @@ -267,6 +267,7 @@ const LayoutSlug = props => { siteConfig('COMMENT_WEBMENTION_ENABLE') const router = useRouter() + const waiting404 = siteConfig('POST_WAITING_TIME_FOR_404') * 1000 useEffect(() => { // 404 if (!post) { @@ -283,7 +284,7 @@ const LayoutSlug = props => { } } }, - siteConfig('POST_WAITING_TIME_FOR_404') * 1000 + waiting404 ) } }, [post]) diff --git a/themes/hexo/index.js b/themes/hexo/index.js index 49d20a31..c32310c0 100644 --- a/themes/hexo/index.js +++ b/themes/hexo/index.js @@ -263,6 +263,7 @@ const LayoutArchive = props => { const LayoutSlug = props => { const { post, lock, validPassword } = props const router = useRouter() + const waiting404 = siteConfig('POST_WAITING_TIME_FOR_404') * 1000 useEffect(() => { // 404 if (!post) { @@ -277,7 +278,7 @@ const LayoutSlug = props => { } } }, - siteConfig('POST_WAITING_TIME_FOR_404') * 1000 + waiting404 ) } }, [post]) diff --git a/themes/landing/index.js b/themes/landing/index.js index 9dbb3be6..51e4f904 100644 --- a/themes/landing/index.js +++ b/themes/landing/index.js @@ -76,6 +76,7 @@ const LayoutSlug = props => { // 如果 是 /article/[slug] 的文章路径则进行重定向到另一个域名 const router = useRouter() + const waiting404 = siteConfig('POST_WAITING_TIME_FOR_404') * 1000 useEffect(() => { // 404 if (!post) { @@ -90,7 +91,7 @@ const LayoutSlug = props => { } } }, - siteConfig('POST_WAITING_TIME_FOR_404') * 1000 + waiting404 ) } }, [post]) diff --git a/themes/matery/index.js b/themes/matery/index.js index cb844a5d..25234e7c 100644 --- a/themes/matery/index.js +++ b/themes/matery/index.js @@ -225,6 +225,7 @@ const LayoutSlug = props => { const { post, lock, validPassword } = props const { fullWidth } = useGlobal() const router = useRouter() + const waiting404 = siteConfig('POST_WAITING_TIME_FOR_404') * 1000 useEffect(() => { // 404 if (!post) { @@ -239,7 +240,7 @@ const LayoutSlug = props => { } } }, - siteConfig('POST_WAITING_TIME_FOR_404') * 1000 + waiting404 ) } }, [post]) diff --git a/themes/medium/index.js b/themes/medium/index.js index cbb76614..798f4879 100644 --- a/themes/medium/index.js +++ b/themes/medium/index.js @@ -185,6 +185,7 @@ const LayoutSlug = props => { ) const router = useRouter() + const waiting404 = siteConfig('POST_WAITING_TIME_FOR_404') * 1000 useEffect(() => { // 404 if (!post) { @@ -201,7 +202,7 @@ const LayoutSlug = props => { } } }, - siteConfig('POST_WAITING_TIME_FOR_404') * 1000 + waiting404 ) } }, [post]) diff --git a/themes/movie/index.js b/themes/movie/index.js index 6e969b7d..af775d0d 100644 --- a/themes/movie/index.js +++ b/themes/movie/index.js @@ -152,6 +152,7 @@ const LayoutPostList = props => { const LayoutSlug = props => { const { post, lock, validPassword } = props const router = useRouter() + const waiting404 = siteConfig('POST_WAITING_TIME_FOR_404') * 1000 useEffect(() => { // 用js 实现将页面中的多个视频聚合为一个分集的视频 function combineVideo() { @@ -299,7 +300,7 @@ const LayoutSlug = props => { } } }, - siteConfig('POST_WAITING_TIME_FOR_404') * 1000 + waiting404 ) } return () => { diff --git a/themes/nav/index.js b/themes/nav/index.js index ed405186..691c369a 100755 --- a/themes/nav/index.js +++ b/themes/nav/index.js @@ -255,6 +255,7 @@ const LayoutPostList = props => { const LayoutSlug = props => { const { post, lock, validPassword } = props const router = useRouter() + const waiting404 = siteConfig('POST_WAITING_TIME_FOR_404') * 1000 useEffect(() => { // 404 if (!post) { @@ -269,7 +270,7 @@ const LayoutSlug = props => { } } }, - siteConfig('POST_WAITING_TIME_FOR_404') * 1000 + waiting404 ) } }, [post]) diff --git a/themes/next/index.js b/themes/next/index.js index 8c70fb8f..bb68834c 100644 --- a/themes/next/index.js +++ b/themes/next/index.js @@ -322,6 +322,7 @@ const LayoutSlug = props => { const { post, lock, validPassword } = props const router = useRouter() + const waiting404 = siteConfig('POST_WAITING_TIME_FOR_404') * 1000 useEffect(() => { // 404 if (!post) { @@ -336,7 +337,7 @@ const LayoutSlug = props => { } } }, - siteConfig('POST_WAITING_TIME_FOR_404') * 1000 + waiting404 ) } }, [post]) diff --git a/themes/nobelium/index.js b/themes/nobelium/index.js index c8324277..47f2f205 100644 --- a/themes/nobelium/index.js +++ b/themes/nobelium/index.js @@ -221,6 +221,7 @@ const LayoutArchive = props => { const LayoutSlug = props => { const { post, lock, validPassword } = props const router = useRouter() + const waiting404 = siteConfig('POST_WAITING_TIME_FOR_404') * 1000 useEffect(() => { // 404 if (!post) { @@ -235,7 +236,7 @@ const LayoutSlug = props => { } } }, - siteConfig('POST_WAITING_TIME_FOR_404') * 1000 + waiting404 ) } }, [post]) diff --git a/themes/photo/index.js b/themes/photo/index.js index b76eef75..9c5b2dfb 100644 --- a/themes/photo/index.js +++ b/themes/photo/index.js @@ -152,6 +152,7 @@ const LayoutPostList = props => { const LayoutSlug = props => { const { post, lock, validPassword } = props const router = useRouter() + const waiting404 = siteConfig('POST_WAITING_TIME_FOR_404') * 1000 useEffect(() => { // 用js 实现将页面中的多个视频聚合为一个分集的视频 function combineVideo() { @@ -299,7 +300,7 @@ const LayoutSlug = props => { } } }, - siteConfig('POST_WAITING_TIME_FOR_404') * 1000 + waiting404 ) } return () => { diff --git a/themes/plog/index.js b/themes/plog/index.js index 4de0ba0a..88f4054b 100644 --- a/themes/plog/index.js +++ b/themes/plog/index.js @@ -176,6 +176,7 @@ const LayoutArchive = props => { const LayoutSlug = props => { const { post, lock, validPassword } = props const router = useRouter() + const waiting404 = siteConfig('POST_WAITING_TIME_FOR_404') * 1000 useEffect(() => { // 404 if (!post) { @@ -190,7 +191,7 @@ const LayoutSlug = props => { } } }, - siteConfig('POST_WAITING_TIME_FOR_404') * 1000 + waiting404 ) } }, [post]) diff --git a/themes/simple/index.js b/themes/simple/index.js index 020bbf4e..a2b98e64 100644 --- a/themes/simple/index.js +++ b/themes/simple/index.js @@ -267,6 +267,7 @@ const LayoutSlug = props => { const Layout404 = props => { const { post } = props const router = useRouter() + const waiting404 = siteConfig('POST_WAITING_TIME_FOR_404') * 1000 useEffect(() => { // 404 if (!post) { @@ -281,7 +282,7 @@ const Layout404 = props => { } } }, - siteConfig('POST_WAITING_TIME_FOR_404') * 1000 + waiting404 ) } }, [post])