forked from gatsbyjs/gatsby
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switched from DocumentTitle to Helmet for more versatility (gatsbyjs#21)
- Loading branch information
1 parent
9897fc5
commit b03081f
Showing
14 changed files
with
212 additions
and
196 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,60 +1,65 @@ | ||
import React from 'react' | ||
import { Link } from 'react-router' | ||
import { prefixLink } from 'gatsby-helpers' | ||
import DocumentTitle from 'react-document-title' | ||
import Helmet from "react-helmet" | ||
import { config } from 'config' | ||
|
||
export default class Index extends React.Component { | ||
render () { | ||
return ( | ||
<DocumentTitle title={config.siteTitle}> | ||
<div> | ||
<h1> | ||
Hi people | ||
</h1> | ||
<p>Welcome to your new Gatsby site</p> | ||
<h2>Below are some pages showing different capabilities built-in to Gatsby</h2> | ||
<h3>Supported file types</h3> | ||
<ul> | ||
<li> | ||
<Link to={prefixLink('/markdown/')}>Markdown</Link> | ||
</li> | ||
<li> | ||
<Link to={prefixLink('/react/')}>JSX (React components)</Link> | ||
</li> | ||
<li> | ||
<Link to={prefixLink('/coffee-react/')}>CJSX (Coffeescript React components)</Link> | ||
</li> | ||
<li> | ||
<Link to={prefixLink('/html/')}>HTML</Link> | ||
</li> | ||
<li> | ||
<Link to={prefixLink('/json/')}>JSON</Link> | ||
</li> | ||
<li> | ||
<Link to={prefixLink('/yaml/')}>YAML</Link> | ||
</li> | ||
<li> | ||
<Link to={prefixLink('/toml/')}>TOML</Link> | ||
</li> | ||
</ul> | ||
<h3>Supported CSS processors</h3> | ||
<ul> | ||
<li> | ||
<Link to={prefixLink('/postcss/')}>PostCSS</Link> | ||
</li> | ||
<li> | ||
<Link to={prefixLink('/css-modules/')}>CSS Modules</Link> | ||
</li> | ||
<li> | ||
<Link to={prefixLink('/sass/')}>Sass</Link> | ||
</li> | ||
<li> | ||
<Link to={prefixLink('/less/')}>Less</Link> | ||
</li> | ||
</ul> | ||
</div> | ||
</DocumentTitle> | ||
<div> | ||
<Helmet | ||
title={config.siteTitle} | ||
meta={[ | ||
{"name": "description", "content": "Sample"}, | ||
{"name": "keywords", "content": "sample, something"}, | ||
]} | ||
/> | ||
<h1> | ||
Hi people | ||
</h1> | ||
<p>Welcome to your new Gatsby site</p> | ||
<h2>Below are some pages showing different capabilities built-in to Gatsby</h2> | ||
<h3>Supported file types</h3> | ||
<ul> | ||
<li> | ||
<Link to={prefixLink('/markdown/')}>Markdown</Link> | ||
</li> | ||
<li> | ||
<Link to={prefixLink('/react/')}>JSX (React components)</Link> | ||
</li> | ||
<li> | ||
<Link to={prefixLink('/coffee-react/')}>CJSX (Coffeescript React components)</Link> | ||
</li> | ||
<li> | ||
<Link to={prefixLink('/html/')}>HTML</Link> | ||
</li> | ||
<li> | ||
<Link to={prefixLink('/json/')}>JSON</Link> | ||
</li> | ||
<li> | ||
<Link to={prefixLink('/yaml/')}>YAML</Link> | ||
</li> | ||
<li> | ||
<Link to={prefixLink('/toml/')}>TOML</Link> | ||
</li> | ||
</ul> | ||
<h3>Supported CSS processors</h3> | ||
<ul> | ||
<li> | ||
<Link to={prefixLink('/postcss/')}>PostCSS</Link> | ||
</li> | ||
<li> | ||
<Link to={prefixLink('/css-modules/')}>CSS Modules</Link> | ||
</li> | ||
<li> | ||
<Link to={prefixLink('/sass/')}>Sass</Link> | ||
</li> | ||
<li> | ||
<Link to={prefixLink('/less/')}>Less</Link> | ||
</li> | ||
</ul> | ||
</div> | ||
) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,35 @@ | ||
import React from 'react' | ||
import './example.less' | ||
import DocumentTitle from 'react-document-title' | ||
import Helmet from 'react-helmet' | ||
import { config } from 'config' | ||
|
||
export default class Less extends React.Component { | ||
render () { | ||
return ( | ||
<DocumentTitle title={`${config.siteTitle} | Hi lessy friends`}> | ||
<div> | ||
<h1 | ||
className="the-less-class" | ||
> | ||
Hi lessy friends | ||
</h1> | ||
<div className="less-nav-example"> | ||
<h2>Nav example</h2> | ||
<ul> | ||
<li> | ||
<a href="#">Store</a> | ||
</li> | ||
<li> | ||
<a href="#">Help</a> | ||
</li> | ||
<li> | ||
<a href="#">Logout</a> | ||
</li> | ||
</ul> | ||
</div> | ||
<div> | ||
<Helmet | ||
title={`${config.siteTitle} | Hi lessy friends`} | ||
/> | ||
<h1 | ||
className="the-less-class" | ||
> | ||
Hi lessy friends | ||
</h1> | ||
<div className="less-nav-example"> | ||
<h2>Nav example</h2> | ||
<ul> | ||
<li> | ||
<a href="#">Store</a> | ||
</li> | ||
<li> | ||
<a href="#">Help</a> | ||
</li> | ||
<li> | ||
<a href="#">Logout</a> | ||
</li> | ||
</ul> | ||
</div> | ||
</DocumentTitle> | ||
</div> | ||
) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,33 @@ | ||
import React from 'react' | ||
import './example.css' | ||
import DocumentTitle from 'react-document-title' | ||
import Helmet from 'react-helmet' | ||
import { config } from 'config' | ||
|
||
export default class PostCSS extends React.Component { | ||
render () { | ||
return ( | ||
<DocumentTitle title={`${config.siteTitle} | Hi PostCSSy friends`}> | ||
<div> | ||
<h1 className="the-postcss-class"> | ||
Hi PostCSSy friends | ||
</h1> | ||
<div className="postcss-nav-example"> | ||
<h2>Nav example</h2> | ||
<ul> | ||
<li> | ||
<a href="#">Store</a> | ||
</li> | ||
<li> | ||
<a href="#">Help</a> | ||
</li> | ||
<li> | ||
<a href="#">Logout</a> | ||
</li> | ||
</ul> | ||
</div> | ||
<div> | ||
<Helmet | ||
title={`${config.siteTitle} | Hi PostCSSy friends`} | ||
/> | ||
<h1 className="the-postcss-class"> | ||
Hi PostCSSy friends | ||
</h1> | ||
<div className="postcss-nav-example"> | ||
<h2>Nav example</h2> | ||
<ul> | ||
<li> | ||
<a href="#">Store</a> | ||
</li> | ||
<li> | ||
<a href="#">Help</a> | ||
</li> | ||
<li> | ||
<a href="#">Logout</a> | ||
</li> | ||
</ul> | ||
</div> | ||
</DocumentTitle> | ||
</div> | ||
) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.