mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-01 03:29:39 +08:00
Merge pull request #18922 from ant-design/fix-site-title-char
tweak: site specialChar encoding
This commit is contained in:
commit
8b4bd0c23d
@ -81,7 +81,7 @@ class Article extends React.Component {
|
||||
return (
|
||||
/* eslint-disable-next-line */
|
||||
<article className="markdown" onClick={this.onResourceClick}>
|
||||
<Helmet>
|
||||
<Helmet encodeSpecialCharacters={false}>
|
||||
{helmetTitle && <title>{helmetTitle}</title>}
|
||||
{helmetTitle && <meta property="og:title" content={helmetTitle} />}
|
||||
{metaDesc && <meta name="description" content={metaDesc} />}
|
||||
|
@ -111,7 +111,7 @@ class ComponentDoc extends React.Component {
|
||||
|
||||
return (
|
||||
<article className={articleClassName}>
|
||||
<Helmet>
|
||||
<Helmet encodeSpecialCharacters={false}>
|
||||
{helmetTitle && <title>{helmetTitle}</title>}
|
||||
{helmetTitle && <meta property="og:title" content={helmetTitle} />}
|
||||
{contentChild && <meta name="description" content={contentChild} />}
|
||||
|
@ -69,7 +69,7 @@ class Home extends React.Component {
|
||||
return (
|
||||
<>
|
||||
<style dangerouslySetInnerHTML={{ __html: getStyle() }} /> {/* eslint-disable-line */}
|
||||
<Helmet>
|
||||
<Helmet encodeSpecialCharacters={false}>
|
||||
<title>{`Ant Design - ${intl.formatMessage({ id: 'app.home.slogan' })}`}</title>
|
||||
</Helmet>
|
||||
<Banner {...childProps} />
|
||||
|
@ -120,7 +120,7 @@ export default class Layout extends React.Component {
|
||||
: 'An enterprise-class UI design language and React UI library with a set of high-quality React components, one of best React UI library for enterprises';
|
||||
return (
|
||||
<>
|
||||
<Helmet>
|
||||
<Helmet encodeSpecialCharacters={false}>
|
||||
<html lang={appLocale.locale === 'zh-CN' ? 'zh' : 'en'} />
|
||||
<title>{title}</title>
|
||||
<meta name="description" content={description} />
|
||||
|
Loading…
Reference in New Issue
Block a user