style(site): remove helmetTitle check (#30221)

* style(site): remove helmetTitle check

* style(site): remove {}
This commit is contained in:
xiejiahe 2021-04-20 10:34:00 +08:00 committed by GitHub
parent 1f1aa86441
commit 1684985da1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -149,8 +149,8 @@ class ComponentDoc extends React.Component {
return (
<article>
<Helmet encodeSpecialCharacters={false}>
{helmetTitle && <title>{helmetTitle}</title>}
{helmetTitle && <meta property="og:title" content={helmetTitle} />}
<title>{helmetTitle}</title>
<meta property="og:title" content={helmetTitle} />
{contentChild && <meta name="description" content={contentChild} />}
</Helmet>
<Affix className="toc-affix" offsetTop={16}>