Skip to content

Commit

Permalink
Merge pull request #1289 from tdouguo/add-baidu-site-verification
Browse files Browse the repository at this point in the history
添加百度站长验证
  • Loading branch information
tangly1024 committed Jul 20, 2023
2 parents b98af6a + 5fcde8d commit af51209
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions blog.config.js
Expand Up @@ -296,6 +296,9 @@ const BLOG = {
SEO_GOOGLE_SITE_VERIFICATION:
process.env.NEXT_PUBLIC_SEO_GOOGLE_SITE_VERIFICATION || '', // Remove the value or replace it with your own google site verification code

SEO_BAIDU_SITE_VERIFICATION:
process.env.NEXT_PUBLIC_SEO_BAIDU_SITE_VERIFICATION || '', // Remove the value or replace it with your own google site verification code

// <---- 站点统计

// 谷歌广告
Expand Down
1 change: 1 addition & 0 deletions components/CommonHead.js
Expand Up @@ -28,6 +28,7 @@ const CommonHead = ({ meta, children }) => {
content={BLOG.SEO_GOOGLE_SITE_VERIFICATION}
/>
)}
{BLOG.SEO_BAIDU_SITE_VERIFICATION && (<meta name="baidu-site-verification" content={BLOG.SEO_BAIDU_SITE_VERIFICATION} />)}
<meta name="keywords" content={keywords} />
<meta name="description" content={description} />
<meta property="og:locale" content={lang} />
Expand Down

0 comments on commit af51209

Please sign in to comment.