Skip to content

Commit 8f0af71

Browse files
author
Ives van Hoorne
committed
Update description for doc pages
1 parent 2184d73 commit 8f0af71

File tree

3 files changed

+9
-14
lines changed

3 files changed

+9
-14
lines changed

packages/homepage/src/components/TitleAndMetaTags.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,18 @@ import Helmet from 'react-helmet';
33

44
export default ({
55
title = 'CodeSandbox: Online Code Editor Tailored for Web Application Development',
6+
description = 'CodeSandbox is an online code editor with a focus on creating and sharing web application projects',
67
}: {
78
title: string,
9+
description: string,
810
}) => (
911
<Helmet
1012
title={title}
1113
meta={[
1214
{ name: 'og:title', content: title },
13-
{
14-
name: 'description',
15-
content:
16-
'CodeSandbox is an online code editor with a focus on creating and sharing web application projects',
17-
},
15+
{ name: 'description', content: description },
16+
{ name: 'og:description', content: description },
17+
{ name: 'twitter:description', content: description },
1818
{
1919
name: 'keywords',
2020
content:

packages/homepage/src/html.js

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,6 @@ export default class HTML extends Component {
3636
/>
3737
<meta property="og:type" content="website" />
3838
<meta property="og:author" content="https://ivesvh.com" />
39-
<meta
40-
property="og:description"
41-
content="CodeSandbox is an online code editor with a focus on creating and sharing web application projects"
42-
/>
4339
<meta
4440
property="og:image"
4541
content="https://codesandbox.io/static/img/banner.png"
@@ -50,10 +46,6 @@ export default class HTML extends Component {
5046
<meta property="twitter:site" content="@CompuIves" />
5147
<meta property="twitter:creator" content="@CompuIves" />
5248
<meta property="twitter:title" content="CodeSandbox" />
53-
<meta
54-
property="twitter:description"
55-
content="CodeSandbox is an online code editor with a focus on creating and sharing web application projects"
56-
/>
5749
<meta
5850
property="twitter:image:src"
5951
content="https://codesandbox.io/static/img/banner.png"

packages/homepage/src/templates/docs.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,10 @@ export default class Docs extends React.Component {
191191

192192
return (
193193
<Container style={{ overflowX: 'auto' }}>
194-
<TitleAndMetaTags title={`${frontmatter.title} - CodeSandbox`} />
194+
<TitleAndMetaTags
195+
title={`${frontmatter.title} - CodeSandbox`}
196+
description={frontmatter.description}
197+
/>
195198
<PageContainer>
196199
<DocsContainer>
197200
<div

0 commit comments

Comments
 (0)