mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-03 04:30:06 +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 (
|
return (
|
||||||
/* eslint-disable-next-line */
|
/* eslint-disable-next-line */
|
||||||
<article className="markdown" onClick={this.onResourceClick}>
|
<article className="markdown" onClick={this.onResourceClick}>
|
||||||
<Helmet>
|
<Helmet encodeSpecialCharacters={false}>
|
||||||
{helmetTitle && <title>{helmetTitle}</title>}
|
{helmetTitle && <title>{helmetTitle}</title>}
|
||||||
{helmetTitle && <meta property="og:title" content={helmetTitle} />}
|
{helmetTitle && <meta property="og:title" content={helmetTitle} />}
|
||||||
{metaDesc && <meta name="description" content={metaDesc} />}
|
{metaDesc && <meta name="description" content={metaDesc} />}
|
||||||
|
@ -111,7 +111,7 @@ class ComponentDoc extends React.Component {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<article className={articleClassName}>
|
<article className={articleClassName}>
|
||||||
<Helmet>
|
<Helmet encodeSpecialCharacters={false}>
|
||||||
{helmetTitle && <title>{helmetTitle}</title>}
|
{helmetTitle && <title>{helmetTitle}</title>}
|
||||||
{helmetTitle && <meta property="og:title" content={helmetTitle} />}
|
{helmetTitle && <meta property="og:title" content={helmetTitle} />}
|
||||||
{contentChild && <meta name="description" content={contentChild} />}
|
{contentChild && <meta name="description" content={contentChild} />}
|
||||||
|
@ -69,7 +69,7 @@ class Home extends React.Component {
|
|||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<style dangerouslySetInnerHTML={{ __html: getStyle() }} /> {/* eslint-disable-line */}
|
<style dangerouslySetInnerHTML={{ __html: getStyle() }} /> {/* eslint-disable-line */}
|
||||||
<Helmet>
|
<Helmet encodeSpecialCharacters={false}>
|
||||||
<title>{`Ant Design - ${intl.formatMessage({ id: 'app.home.slogan' })}`}</title>
|
<title>{`Ant Design - ${intl.formatMessage({ id: 'app.home.slogan' })}`}</title>
|
||||||
</Helmet>
|
</Helmet>
|
||||||
<Banner {...childProps} />
|
<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';
|
: '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 (
|
return (
|
||||||
<>
|
<>
|
||||||
<Helmet>
|
<Helmet encodeSpecialCharacters={false}>
|
||||||
<html lang={appLocale.locale === 'zh-CN' ? 'zh' : 'en'} />
|
<html lang={appLocale.locale === 'zh-CN' ? 'zh' : 'en'} />
|
||||||
<title>{title}</title>
|
<title>{title}</title>
|
||||||
<meta name="description" content={description} />
|
<meta name="description" content={description} />
|
||||||
|
Loading…
Reference in New Issue
Block a user