diff --git a/components/CommonHead.js b/components/CommonHead.js
deleted file mode 100644
index cb07bb7f..00000000
--- a/components/CommonHead.js
+++ /dev/null
@@ -1,45 +0,0 @@
-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 cce644a1..3ebcfe8b 100644
--- a/layouts/DefaultLayout.js
+++ b/layouts/DefaultLayout.js
@@ -2,7 +2,6 @@ import BlogPost from '@/components/BlogPost'
import PropTypes from 'prop-types'
import Pagination from '@/components/Pagination'
import BLOG from '@/blog.config'
-import CommonHead from '@/components/CommonHead'
import { useRouter } from 'next/router'
import { useTheme } from '@/lib/theme'
import { useEffect, useState } from 'react'
@@ -10,11 +9,6 @@ import SideBar from '@/components/SideBar'
import throttle from 'lodash.throttle'
const DefaultLayout = ({ tags, posts, page, currentTag, ...customMeta }) => {
- const meta = {
- title: BLOG.title,
- type: 'website',
- ...customMeta
- }
page = page ?? 1
let postsToShow = []
let filteredBlogPosts = posts ?? []
@@ -64,20 +58,19 @@ const DefaultLayout = ({ tags, posts, page, currentTag, ...customMeta }) => {
changeColumn(4)
} else if (window.innerWidth > 1300) {
changeColumn(3)
- } else if (window.innerWidth < 768) {
- changeColumn(1)
- } else {
+ } else if (window.innerWidth > 900) {
changeColumn(2)
+ } else if (window.innerWidth < 900) {
+ changeColumn(1)
}
}, 500)
- const [column, changeColumn] = useState(1)
+ const [column, changeColumn] = useState(3)
const { theme } = useTheme()
return (
-
{/*
*/}
{/*
*/}
@@ -112,11 +105,11 @@ const DefaultLayout = ({ tags, posts, page, currentTag, ...customMeta }) => {
)}
{/* 文章列表 */}
-
+
{/*
*/}
-
+
{!postsToShow.length && (
-
No posts found.
+
No posts found.
)}
{postsToShow.map(post => (
diff --git a/pages/_document.js b/pages/_document.js
index adf9fbb4..e5c7a27e 100644
--- a/pages/_document.js
+++ b/pages/_document.js
@@ -14,6 +14,20 @@ class MyDocument extends Document {
+
+
+
+
+
+ {BLOG.seo.googleSiteVerification && (
+
+ )}
+ {BLOG.seo.keywords && (
+
+ )}