From 0e911f5ef3e4b7dd53c6b39bed41706084fc77df Mon Sep 17 00:00:00 2001 From: tangly1024 Date: Wed, 13 Oct 2021 16:11:20 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=9C=E9=97=B4=E6=A8=A1=E5=BC=8F=E9=80=82?= =?UTF-8?q?=E9=85=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/Container.js | 7 +++++-- components/JumpToTop.js | 2 +- components/Pagination.js | 2 +- layouts/ArticleLayout.js | 6 +----- layouts/DefaultLayout.js | 6 +----- 5 files changed, 9 insertions(+), 14 deletions(-) diff --git a/components/Container.js b/components/Container.js index 90af14e8..018d3e39 100644 --- a/components/Container.js +++ b/components/Container.js @@ -3,6 +3,8 @@ import React, { useCallback, useEffect } from 'react' import CommonHead from '@/components/CommonHead' import TopNav from '@/components/TopNav' import throttle from 'lodash.throttle' +import BLOG from '@/blog.config' +import { useTheme } from '@/lib/theme' const Container = ({ children, layout, fullWidth, tags, meta, ...customMeta }) => { let windowTop = 0 @@ -28,12 +30,13 @@ const Container = ({ children, layout, fullWidth, tags, meta, ...customMeta }) = window.removeEventListener('scroll', scrollTrigger) } }) + const { theme } = useTheme() return ( - <> +
{children} - +
) } diff --git a/components/JumpToTop.js b/components/JumpToTop.js index 8e03cc29..4b1415cd 100644 --- a/components/JumpToTop.js +++ b/components/JumpToTop.js @@ -35,7 +35,7 @@ const JumpToTop = ({ targetRef }) => {
window.scrollTo({ top: 0, behavior: 'smooth' })}> -
+
{percent}%
{ const router = useRouter() const currentPage = +page return ( -
+
+ {/* live2d 看板娘 */}