diff --git a/components/CommonHead.js b/components/CommonHead.js
new file mode 100644
index 00000000..cb07bb7f
--- /dev/null
+++ b/components/CommonHead.js
@@ -0,0 +1,45 @@
+import BLOG from '@/blog.config'
+import Head from 'next/head'
+
+const CommonHead = ({ meta }) => {
+ const url = BLOG.path.length ? `${BLOG.link}/${BLOG.path}` : BLOG.link
+
+ return
+
-
-
{meta.title}
-
-
-
-
-
- {meta.type === 'article' && (
- <>
-
-
- >
- )}
-
+
{/* live2d 看板娘 */}
diff --git a/layouts/DefaultLayout.js b/layouts/DefaultLayout.js
index 2204e366..456e04f3 100644
--- a/layouts/DefaultLayout.js
+++ b/layouts/DefaultLayout.js
@@ -7,8 +7,14 @@ import { useTheme } from '@/lib/theme'
import { useEffect, useState } from 'react'
import SideBar from '@/components/SideBar'
import throttle from 'lodash.throttle'
+import CommonHead from '@/components/CommonHead'
const DefaultLayout = ({ tags, posts, page, currentTag, ...customMeta }) => {
+ const meta = {
+ title: BLOG.title,
+ type: 'website',
+ ...customMeta
+ }
page = page ?? 1
let postsToShow = []
let filteredBlogPosts = posts ?? []
@@ -71,6 +77,7 @@ const DefaultLayout = ({ tags, posts, page, currentTag, ...customMeta }) => {
return (
+
{/* */}
{/* */}
diff --git a/pages/_document.js b/pages/_document.js
index e317e768..e5741870 100644
--- a/pages/_document.js
+++ b/pages/_document.js
@@ -12,21 +12,9 @@ class MyDocument extends Document {
return (
+ {BLOG.title}
-
-
-
-
- {BLOG.seo.googleSiteVerification && (
-
- )}
- {BLOG.seo.keywords && (
-
- )}