File tree Expand file tree Collapse file tree 3 files changed +9
-14
lines changed
Expand file tree Collapse file tree 3 files changed +9
-14
lines changed Original file line number Diff line number Diff line change @@ -3,18 +3,18 @@ import Helmet from 'react-helmet';
33
44export 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 :
Original file line number Diff line number Diff 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"
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments