From ee15ad706e386dc8dacfa47c0d2902719e77208c Mon Sep 17 00:00:00 2001 From: mamba <371510756@qq.com> Date: Wed, 4 Dec 2024 21:50:53 +0800 Subject: [PATCH] =?UTF-8?q?SEO=20=E4=BC=98=E5=8C=96=20(#845)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: 🎸 SEO 相关优化 --- src/components/home/ChooseReason.astro | 4 ++-- src/components/home/EarthBackground.astro | 6 +++--- src/i18n/en/ui.ts | 1 + src/i18n/zh-cn/ui.ts | 1 + 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/components/home/ChooseReason.astro b/src/components/home/ChooseReason.astro index 853060cf591..23e1c0aabeb 100644 --- a/src/components/home/ChooseReason.astro +++ b/src/components/home/ChooseReason.astro @@ -31,9 +31,9 @@ const dataSource = [ class="choose-reason block bg-gary-01 py-10 flex flex-col justify-center items-center" >
-

+

{t("home.nacos.edge.about")} -

+ {t("home.nacos.edge.title")} diff --git a/src/components/home/EarthBackground.astro b/src/components/home/EarthBackground.astro index fbd8fccb952..ca1fdefd94f 100644 --- a/src/components/home/EarthBackground.astro +++ b/src/components/home/EarthBackground.astro @@ -17,10 +17,10 @@ const { stargazers_count=0, forks_count=0 }:StarAndForkT = await sendFetch("http src="https://img.alicdn.com/imgextra/i3/O1CN01ZvHnbg29VwowXGiKM_!!6000000008074-2-tps-8001-1562.png" alt="nacos-log" /> - -

+

{t('home.introduce.website')}

+

{t('home.introduce.title')} -

+

diff --git a/src/i18n/en/ui.ts b/src/i18n/en/ui.ts index 2edb3793fd2..1dcd3a3117b 100644 --- a/src/i18n/en/ui.ts +++ b/src/i18n/en/ui.ts @@ -54,6 +54,7 @@ export default { 'home.title': 'Nacos Website | Nacos Registration Configuration Center | Nacos Download | Nacos Official Community', 'home.description': 'Nacos provides dynamic service discovery, configuration, and management, helping users quickly build and deliver microservice platforms in private, hybrid, and public clouds, enhancing service reuse and innovation delivery speed to gain market competitiveness.', 'home.introduce.about': 'ABOUT NACOS', + 'home.introduce.website': 'Nacos Website', 'home.introduce.title': 'An easy-to-use dynamic service discovery, configuration and service management platform for building cloud native applications', 'home.introduce.nacos.code': 'VIEW ON GITHUB', 'home.introduce.nacos.manual': 'MANUAL', diff --git a/src/i18n/zh-cn/ui.ts b/src/i18n/zh-cn/ui.ts index e65c1dd806e..5370f0f0498 100644 --- a/src/i18n/zh-cn/ui.ts +++ b/src/i18n/zh-cn/ui.ts @@ -52,6 +52,7 @@ export default { 'home.title': 'Nacos官网| Nacos 配置中心 | Nacos 下载| Nacos 官方社区', 'home.description': 'Nacos 提供动态服务发现、配置和管理,助力用户在私有云、混合云、公有云等环境中快速构建和交付微服务平台,提升业务复用和创新交付速度,为用户赢得市场竞争力。', + 'home.introduce.website': 'Nacos官网', 'home.introduce.about': '关于 NACOS', 'home.introduce.title': ' 一个更易于构建云原生应用的动态服务发现、配置管理和服务管理平台', 'home.introduce.nacos.code': '前往 GitHub',