From d1dfd32af26e522057778882c3144ca5d1c08803 Mon Sep 17 00:00:00 2001 From: tangly1024 Date: Sun, 30 Jul 2023 11:52:14 +0800 Subject: [PATCH] Common --- pages/_app.js | 4 ---- themes/example/index.js | 7 ++++++- themes/fukasawa/index.js | 5 ++++- themes/gitbook/index.js | 4 +++- themes/heo/index.js | 4 +++- themes/hexo/index.js | 2 +- themes/medium/index.js | 5 ++++- themes/next/index.js | 5 ++++- themes/nobelium/index.js | 5 ++++- themes/plog/index.js | 5 ++++- themes/simple/index.js | 5 ++++- 11 files changed, 37 insertions(+), 14 deletions(-) diff --git a/pages/_app.js b/pages/_app.js index 57c4047a..ed0c8f76 100644 --- a/pages/_app.js +++ b/pages/_app.js @@ -17,8 +17,6 @@ import dynamic from 'next/dynamic' // 自定义样式css和js引入 import ExternalScript from '@/components/ExternalScript' -import CommonHead from '@/components/CommonHead' - // 各种扩展插件 动画等 const ExternalPlugins = dynamic(() => import('@/components/ExternalPlugins')) @@ -26,11 +24,9 @@ const MyApp = ({ Component, pageProps }) => { useEffect(() => { AOS.init() }, []) - const { meta } = pageProps return ( - diff --git a/themes/example/index.js b/themes/example/index.js index 8dffec78..0772f7fd 100644 --- a/themes/example/index.js +++ b/themes/example/index.js @@ -26,6 +26,7 @@ import TagItem from './components/TagItem' import { useRouter } from 'next/router' import { Transition } from '@headlessui/react' import { Style } from './style' +import CommonHead from '@/components/CommonHead' /** * 基础布局框架 @@ -35,7 +36,7 @@ import { Style } from './style' * @constructor */ const LayoutBase = props => { - const { children, slotTop } = props + const { children, slotTop, meta } = props const { onLoading } = useGlobal() // 增加一个状态以触发 Transition 组件的动画 @@ -48,6 +49,10 @@ const LayoutBase = props => { return (
+ + {/* SEO信息 */} + +