diff --git a/blog.config.js b/blog.config.js index 90167ec0..a82b36fd 100644 --- a/blog.config.js +++ b/blog.config.js @@ -20,7 +20,7 @@ const BLOG = { autoCollapsedNavBar: false, // the automatically collapsed navigation bar socialLink: 'https://weibo.com/u/2245301913', seo: { - keywords: ['建站', '自媒体', 'Notion', '赚钱', '写作', '副业'], + keywords: ['建站', 'Notion', '赚钱', '写作', '副业'], googleSiteVerification: '' // Remove the value or replace it with your own google site verification code }, analytics: { diff --git a/components/CommonHead.js b/components/CommonHead.js index a805d0b3..eb18780b 100644 --- a/components/CommonHead.js +++ b/components/CommonHead.js @@ -9,9 +9,11 @@ const CommonHead = ({ meta }) => { const title = meta?.title || BLOG.title const description = meta?.description || BLOG.description const type = meta?.type || 'website' + const keywords = meta?.tags || BLOG.seo.keywords + return