@@ -33,11 +33,14 @@ const useStyles = (theme: CommitComposerTheme) =>
33
33
34
34
interface HookProps {
35
35
children : JSX . Element ;
36
+ title ?: string ;
36
37
}
37
38
38
- export const MainLayout : FunctionComponent < HookProps > = ( { children } ) => {
39
+ export const MainLayout : FunctionComponent < HookProps > = ( { children, title } ) => {
39
40
const theme = useTheme ( ) ;
40
41
const classes = useStyles ( theme ) ( ) ;
42
+ const siteName = 'Commit-composer' ;
43
+ const pageTitle = title ? `${ siteName } - ${ title } ` : siteName ;
41
44
42
45
return (
43
46
< >
@@ -47,13 +50,25 @@ export const MainLayout: FunctionComponent<HookProps> = ({ children }) => {
47
50
< link rel = "icon" type = "image/png" sizes = "16x16" href = "/favicon-16x16.png" />
48
51
< link rel = "manifest" href = "/site.webmanifest" />
49
52
< meta name = "viewport" content = "width=device-width,initial-scale=1" charSet = "UTF-8" />
53
+ < title > { pageTitle } </ title >
54
+ < meta property = "og:site_name" content = { siteName } />
55
+ < meta property = "og:title" name = "title" key = "title" content = { pageTitle } />
56
+ < meta
57
+ property = "og:description"
58
+ name = "description"
59
+ key = "description"
60
+ content = "A tool for composing conventional commit messages. Commit-composer aims to bridge the gap between your favorite Git GUI and beautifully structured commit messages for your repository."
61
+ />
62
+ < meta
63
+ name = "keywords"
64
+ content = "commit-composer, conventional commits, commitlint, git, commitizen" > </ meta >
50
65
</ Head >
51
66
< Layout className = { classes . root } >
52
67
< Header className = { classes . header } >
53
68
< Row justify = "space-between" >
54
69
< Col >
55
70
< Link href = "/" >
56
- < h1 className = { classes . titleContainer } > commit -composer.dev</ h1 >
71
+ < h1 className = { classes . titleContainer } > Commit -composer.dev</ h1 >
57
72
</ Link >
58
73
</ Col >
59
74
< Col className = { classes . buttonContainer } >
0 commit comments