From 0bfc3b7fcb3d303291938a61f0cbff1f9c88d42f Mon Sep 17 00:00:00 2001 From: ihavecoke <10757551+ihavecoke@users.noreply.github.com> Date: Thu, 20 Jun 2024 10:32:49 +0800 Subject: [PATCH] update meta info (#17) update meta info --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: LongPort wiki bot --- 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;