From 02d05192e5ab080647d8d636684c3642b09d4cea Mon Sep 17 00:00:00 2001 From: ihavecoke Date: Thu, 20 Jun 2024 10:26:34 +0800 Subject: [PATCH] Add home page meta info --- i18n/en/code.json | 6 ++++++ i18n/zh-CN/code.json | 6 ++++++ i18n/zh-HK/code.json | 6 ++++++ src/components/layout/application.tsx | 10 ++++++---- 4 files changed, 24 insertions(+), 4 deletions(-) diff --git a/i18n/en/code.json b/i18n/en/code.json index bd40bfd10..1a2200ca0 100644 --- a/i18n/en/code.json +++ b/i18n/en/code.json @@ -1,4 +1,10 @@ { + "meta_title": { + "message": "LongPort - Research and trade with high-value investors" + }, + "meta_desc": { + "message": "LongPort is a public platform comprised of multiple brokerage users, offering rich multi-market trading capabilities, investment research tools and a high information density community discussion board." + }, "breadcrumbs.nav.home": { "message": "Home" }, diff --git a/i18n/zh-CN/code.json b/i18n/zh-CN/code.json index b00cccb6d..3f7836d54 100644 --- a/i18n/zh-CN/code.json +++ b/i18n/zh-CN/code.json @@ -1,4 +1,10 @@ { + "meta_title": { + "message": "LongPort 與高價值投資者一起研究和交易" + }, + "meta_desc": { + "message": "LongPort 是一個由多家券商用戶構成的公共平台,具備豐富的多市場交易能力、研究工具、以及一個高信息密度的投資者交流社區" + }, "breadcrumbs.nav.home": { "message": "首页" }, diff --git a/i18n/zh-HK/code.json b/i18n/zh-HK/code.json index f2dbc6417..6528158d2 100644 --- a/i18n/zh-HK/code.json +++ b/i18n/zh-HK/code.json @@ -1,4 +1,10 @@ { + "meta_title": { + "message": "LongPort 與高價值投資者一起研究和交易" + }, + "meta_desc": { + "message": "LongPort 是一個由多家券商用戶構成的公共平台,具備豐富的多市場交易能力、研究工具、以及一個高信息密度的投資者交流社區" + }, "breadcrumbs.nav.home": { "message": "首頁" }, diff --git a/src/components/layout/application.tsx b/src/components/layout/application.tsx index 89e5f79de..bb9345a6b 100644 --- a/src/components/layout/application.tsx +++ b/src/components/layout/application.tsx @@ -1,15 +1,17 @@ -import useDocusaurusContext from "@docusaurus/useDocusaurusContext"; import Layout from "@theme/Layout"; import React, { FC } from "react"; +import { translate } from "@docusaurus/Translate"; const ApplicationLayout: FC<{ children: React.ReactNode }> = ({ children }) => { - const { siteConfig } = useDocusaurusContext(); return ( - +
{children}
- ) + ); }; export default ApplicationLayout;