File tree 4 files changed +9
-7
lines changed
4 files changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ const NotFoundPage: React.FC<NotFoundProps> = ({ router }) => {
48
48
extra = {
49
49
< Link to = { utils . getLocalizedPathname ( '/' , isZhCN ) } >
50
50
< Button type = "primary" icon = { < HomeOutlined /> } >
51
- { isZhCN ? '返回 Ant Design 首页' : 'Back to home page' }
51
+ { isZhCN ? '返回 Ant Design X 首页' : 'Back to home page' }
52
52
</ Button >
53
53
</ Link >
54
54
}
Original file line number Diff line number Diff line change @@ -67,8 +67,8 @@ const CustomTheme: React.FC = () => {
67
67
return (
68
68
< div className = { styles . editor } >
69
69
< Helmet >
70
- < title > { `${ locale . title } - Ant Design` } </ title >
71
- < meta property = "og:title" content = { `${ locale . title } - Ant Design` } />
70
+ < title > { `${ locale . title } - Ant Design X ` } </ title >
71
+ < meta property = "og:title" content = { `${ locale . title } - Ant Design X ` } />
72
72
</ Helmet >
73
73
< Suspense fallback = { < Skeleton style = { { margin : 24 } } /> } >
74
74
< ThemeEditor
Original file line number Diff line number Diff line change 1
- import React from 'react' ;
2
1
import { Helmet , useRouteMeta } from 'dumi' ;
2
+ import React from 'react' ;
3
3
4
4
const CommonHelmet : React . FC = ( ) => {
5
5
const meta = useRouteMeta ( ) ;
6
6
7
7
const [ title , description ] = React . useMemo < [ string , string ] > ( ( ) => {
8
8
let helmetTitle : string ;
9
9
if ( ! meta . frontmatter . subtitle && ! meta . frontmatter . title ) {
10
- helmetTitle = '404 Not Found - Ant Design' ;
10
+ helmetTitle = '404 Not Found - Ant Design X ' ;
11
11
} else {
12
12
helmetTitle = `${ meta . frontmatter . subtitle || '' } ${
13
13
meta . frontmatter ?. title || ''
14
- } - Ant Design`;
14
+ } - Ant Design X `;
15
15
}
16
16
const helmetDescription = meta . frontmatter . description || '' ;
17
17
return [ helmetTitle , helmetDescription ] ;
Original file line number Diff line number Diff line change @@ -14,7 +14,9 @@ const IndexLayout: React.FC<PropsWithChildren<IndexLayoutProps>> = (props) => {
14
14
return (
15
15
< >
16
16
< Helmet >
17
- < title > { title } </ title >
17
+ < title >
18
+ { title } - { desc }
19
+ </ title >
18
20
< meta property = "og:title" content = { title } />
19
21
{ desc && < meta name = "description" content = { desc } /> }
20
22
</ Helmet >
You can’t perform that action at this time.
0 commit comments