Commit d1a26194 authored by AI Bot's avatar AI Bot

SEO keywords 按站点拆分;填入中英文站域名

- _document.js keywords 按 SITE_LANG 拆分:中文站保留原混排,英文站只留英文关键词
- head.md 填入 siteZH=https://www.gaorongvc.com、siteEN=https://www.gaorongventures.com(语言切换跳转用)Co-Authored-By: 's avatarClaude Code <noreply@anthropic.com>
parent 047b7e03
--- ---
# 单语言模式下,语言切换按钮跳转的对方站点域名(带 https://,不带结尾斜杠) # 单语言模式下,语言切换按钮跳转的对方站点域名(带 https://,不带结尾斜杠)
siteZH: '' siteZH: 'https://www.gaorongvc.com'
siteEN: '' siteEN: 'https://www.gaorongventures.com'
home: 首页 home: 首页
homeEN: Home homeEN: Home
about: 关于我们 about: 关于我们
......
// _document is only rendered on the server side and not on the client side // _document is only rendered on the server side and not on the client side
// Event handlers like onClick can't be added to this file // Event handlers like onClick can't be added to this file
import Document, { Head, Main, NextScript } from 'next/document' import Document, { Head, Main, NextScript } from 'next/document'
import { SITE_LANG } from '../utils/siteLang'
// import * as Sentry from '@sentry/browser' // import * as Sentry from '@sentry/browser'
// process.on('unhandledRejection', err => { // process.on('unhandledRejection', err => {
...@@ -17,11 +18,15 @@ export default class MyDocument extends Document { ...@@ -17,11 +18,15 @@ export default class MyDocument extends Document {
} }
render() { render() {
const keywords =
SITE_LANG === 'en'
? 'Gaorong Ventures,Gaorong Capital,Banyan Capital'
: '高榕创投,高榕资本,Gaorong Venture,Gaorong Capital,高榕,Banyan Capital'
return ( return (
<html> <html>
<meta name="viewport" content="width=device-width, initial-scale=1.0"></meta> <meta name="viewport" content="width=device-width, initial-scale=1.0"></meta>
<meta httpEquiv="X-UA-Compatible" content="IE=Edge,chrome=1"></meta> <meta httpEquiv="X-UA-Compatible" content="IE=Edge,chrome=1"></meta>
<meta name="keywords" content="高榕创投,高榕资本,Gaorong Venture,Gaorong Capital,高榕,Banyan Capital"/> <meta name="keywords" content={keywords}/>
<Head> <Head>
<link rel="icon" type="image/x-icon" href="../static/favicon.ico" /> <link rel="icon" type="image/x-icon" href="../static/favicon.ico" />
<script src='/static/px2rem.js'></script> <script src='/static/px2rem.js'></script>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment