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.
Initial commit of new default starter
- Loading branch information
1 parent
a74470a
commit 6feb491
Showing
6 changed files
with
85 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
exports.loadContext = (callback) -> | ||
context = require.context './pages', true | ||
if module.hot | ||
module.hot.accept(context.id, -> | ||
context = require.context './pages', true | ||
callback context | ||
) | ||
|
||
callback context |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
siteTitle="Gatsby Starter Site" |
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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
React = require 'react' | ||
Typography = require 'typography' | ||
DocumentTitle = require 'react-document-title' | ||
|
||
typography = new Typography() | ||
{TypographyStyle} = typography | ||
|
||
module.exports = React.createClass | ||
getDefaultProps: -> | ||
body: "" | ||
|
||
render: -> | ||
title = DocumentTitle.rewind() | ||
if @props.title then title = @props.title | ||
|
||
<html lang="en"> | ||
<head> | ||
<meta charSet="utf-8"/> | ||
<meta httpEquiv="X-UA-Compatible" content="IE=edge"/> | ||
<meta name='viewport' content='width=device-width, initial-scale=1.0 maximum-scale=1.0'/> | ||
<title>{title}</title> | ||
<link rel="shortcut icon" href={@props.favicon}/> | ||
<TypographyStyle/> | ||
</head> | ||
<body> | ||
<div id="react-mount" dangerouslySetInnerHTML={{__html: @props.body}} /> | ||
<script src="/bundle.js"/> | ||
</body> | ||
</html> |
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"name": "gatsby-starter-default", | ||
"version": "1.0.0", | ||
"description": "Gatsby default starter", | ||
"main": "n/a", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
}, | ||
"keywords": [ | ||
"gatsby" | ||
], | ||
"author": "Kyle Mathews <[email protected]>", | ||
"license": "MIT", | ||
"dependencies": { | ||
"react": "^0.13.3", | ||
"react-document-title": "^1.0.2", | ||
"react-responsive-grid": "^0.2.0", | ||
"react-router": "^0.13.3", | ||
"typography": "^0.3.6" | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
React = require 'react' | ||
Router = require 'react-router' | ||
{RouteHandler, Link, State} = Router | ||
{Container, Grid, Breakpoint, Span} = require 'react-responsive-grid' | ||
Typography = require 'typography' | ||
|
||
typography = Typography() | ||
{rhythm, fontSizeToPx} = typography | ||
|
||
module.exports = React.createClass | ||
mixins: [State] | ||
render: -> | ||
<div> | ||
<Container | ||
style={{ | ||
maxWidth: 960 | ||
padding: "#{rhythm(1)} #{rhythm(1/2)}" | ||
paddingTop: 0 | ||
}} | ||
> | ||
<RouteHandler typography={typography} {...@props}/> | ||
</Container> | ||
</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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Hi people | ||
Welcome to your new Gatsby site. |