Skip to content

Commit

Permalink
Add home page meta info
Browse files Browse the repository at this point in the history
  • Loading branch information
ihavecoke committed Jun 20, 2024
1 parent 1242874 commit 02d0519
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 4 deletions.
6 changes: 6 additions & 0 deletions i18n/en/code.json
Original file line number Diff line number Diff line change
@@ -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"
},
Expand Down
6 changes: 6 additions & 0 deletions i18n/zh-CN/code.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
{
"meta_title": {
"message": "LongPort 與高價值投資者一起研究和交易"
},
"meta_desc": {
"message": "LongPort 是一個由多家券商用戶構成的公共平台,具備豐富的多市場交易能力、研究工具、以及一個高信息密度的投資者交流社區"
},
"breadcrumbs.nav.home": {
"message": "首页"
},
Expand Down
6 changes: 6 additions & 0 deletions i18n/zh-HK/code.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
{
"meta_title": {
"message": "LongPort 與高價值投資者一起研究和交易"
},
"meta_desc": {
"message": "LongPort 是一個由多家券商用戶構成的公共平台,具備豐富的多市場交易能力、研究工具、以及一個高信息密度的投資者交流社區"
},
"breadcrumbs.nav.home": {
"message": "首頁"
},
Expand Down
10 changes: 6 additions & 4 deletions src/components/layout/application.tsx
Original file line number Diff line number Diff line change
@@ -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 (
<Layout title={`${siteConfig.title}`} description="LongPort Wiki">
<Layout
title={translate({ id: "meta_title" })}
description={translate({ id: "meta_desc" })}
>
<div className="max-w-screen-xl m-auto px-4 md:px-0 wiki-article-content">
{children}
</div>
</Layout>
)
);
};
export default ApplicationLayout;

0 comments on commit 02d0519

Please sign in to comment.