Skip to content

Commit 147fb98

Browse files
author
Ives van Hoorne
committed
Add title to changelog page
1 parent 22cef29 commit 147fb98

File tree

4 files changed

+25
-17
lines changed

4 files changed

+25
-17
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
import React from 'react';
2+
import Helmet from 'react-helmet';
3+
4+
export default ({ title }: { title: string }) => (
5+
<Helmet
6+
title={title}
7+
meta={[
8+
{
9+
name: 'description',
10+
content:
11+
'CodeSandbox is an online editor with a focus on creating and sharing web application projects',
12+
},
13+
{
14+
name: 'keywords',
15+
content:
16+
'react, codesandbox, editor, code, javascript, playground, sharing, spa, single, page, application, web, application, frontend, front, end',
17+
},
18+
]}
19+
/>
20+
);

packages/homepage/src/layouts/index.js

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import React from 'react';
22
import PropTypes from 'prop-types';
3-
import Helmet from 'react-helmet';
43
import styled, { ThemeProvider } from 'styled-components';
54

65
import theme from 'common/theme';
@@ -25,22 +24,6 @@ const Header = () => (
2524
const TemplateWrapper = ({ children }) => (
2625
<ThemeProvider theme={theme}>
2726
<div>
28-
<Helmet
29-
title="CodeSandbox: Online Editor Tailored for Web Application Development"
30-
meta={[
31-
{
32-
name: 'description',
33-
content:
34-
'CodeSandbox is an online editor with a focus on creating and sharing web application projects',
35-
},
36-
{
37-
name: 'keywords',
38-
content:
39-
'react, codesandbox, editor, code, javascript, playground, sharing, spa, single, page, application, web, application, frontend, front, end',
40-
},
41-
]}
42-
/>
43-
4427
<Header />
4528
<div style={{ maxWidth: '100vw', overflowX: 'hidden' }}>{children()}</div>
4629
</div>

packages/homepage/src/pages/changelog.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import React from 'react';
22
import styled from 'styled-components';
33

4+
import TitleAndMetaTags from '../components/TitleAndMetaTags';
45
import PageContainer from '../components/PageContainer';
56
import { Heading1 } from '../components/headings';
67

@@ -119,6 +120,7 @@ export default ({ data }) => {
119120

120121
return (
121122
<Container>
123+
<TitleAndMetaTags title="CodeSandbox - Recent Updates" />
122124
<PageContainer width={1024}>
123125
<Heading1>Recent Updates</Heading1>
124126
<Description>

packages/homepage/src/pages/index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import ExtraFeatures from '../screens/home/ExtraFeatures';
77
import Footer from '../screens/home/Footer';
88
import RecentPublications from '../screens/home/RecentPublications';
99
import Patron from '../screens/home/Patron';
10+
import TitleAndMetaTags from '../components/TitleAndMetaTags';
1011

1112
export default class HomePage extends React.PureComponent {
1213
componentDidMount() {
@@ -33,6 +34,8 @@ export default class HomePage extends React.PureComponent {
3334
render() {
3435
return (
3536
<div>
37+
<TitleAndMetaTags title="CodeSandbox: Online Editor Tailored for Web Application Development" />
38+
3639
<Animation />
3740
<NPMFeature />
3841
<CycleFeature />

0 commit comments

Comments
 (0)