Improve TDK

This commit is contained in:
Gucheng Wang 2023-01-07 14:11:23 +08:00
parent b643cdf716
commit 20a3a8ca66
3 changed files with 16 additions and 4 deletions

View File

@ -5,10 +5,6 @@
<link rel="icon" href="https://cdn.casbin.com/static/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<meta
name="description"
content="Web site created using create-react-app"
/>
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
<!--
manifest.json provides metadata used when your web app is installed on a

View File

@ -213,6 +213,14 @@ class Conference extends React.Component {
{/* </div>*/}
<Helmet>
<title>{this.props.language !== "en" ? `${treeItem.title} - ${Conf.title}` : `${treeItem.titleEn} - ${Conf.titleEn}`}</title>
<meta
name="description"
content={this.state.language !== "en" ? treeItem.content : treeItem.contentEn}
/>
<meta
name="keywords"
content={this.state.language !== "en" ? treeItem.title : treeItem.titleEn}
/>
</Helmet>
<div style={{marginTop: "40px"}} dangerouslySetInnerHTML={{__html: this.props.language !== "en" ? treeItem.content : treeItem.contentEn}} />
</div>

View File

@ -90,6 +90,14 @@ class HomePage extends React.Component {
<div>
<Helmet>
<title>{this.state.language !== "en" ? Conf.title : Conf.titleEn}</title>
<meta
name="description"
content={this.state.language !== "en" ? Conf.title : Conf.titleEn}
/>
<meta
name="keywords"
content={this.state.language !== "en" ? Conf.title : Conf.titleEn}
/>
</Helmet>
<div style={{marginBottom: "-8px"}}>
{