From 44c698fd4d12f2f34b17b74c927fca5ba06abee3 Mon Sep 17 00:00:00 2001 From: tangly1024 Date: Thu, 27 Jan 2022 12:25:03 +0800 Subject: [PATCH] =?UTF-8?q?commonHead=E6=94=AF=E6=8C=81=E5=B5=8C=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/CommonHead.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/CommonHead.js b/components/CommonHead.js index b496255b..43e56fe7 100644 --- a/components/CommonHead.js +++ b/components/CommonHead.js @@ -1,7 +1,7 @@ import BLOG from '@/blog.config' import Head from 'next/head' -const CommonHead = ({ meta }) => { +const CommonHead = ({ meta, children }) => { let url = BLOG?.PATH?.length ? `${BLOG.LINK}/${BLOG.PATH}` : BLOG.LINK if (meta) { url = `${url}/${meta.slug}` @@ -42,6 +42,7 @@ const CommonHead = ({ meta }) => { )} {/* 谷歌字体镜像 */} + {children} }