From 6feb491223e0ab1e820a815dabb4db274a4bcae0 Mon Sep 17 00:00:00 2001 From: Kyle Mathews Date: Mon, 20 Jul 2015 18:01:13 -0700 Subject: [PATCH] Initial commit of new default starter --- app.coffee | 9 +++++++++ config.toml | 1 + html.cjsx | 29 +++++++++++++++++++++++++++++ package.json | 21 +++++++++++++++++++++ pages/_template.cjsx | 23 +++++++++++++++++++++++ pages/index.md | 2 ++ 6 files changed, 85 insertions(+) create mode 100644 app.coffee create mode 100644 config.toml create mode 100644 html.cjsx create mode 100644 package.json create mode 100644 pages/_template.cjsx create mode 100644 pages/index.md diff --git a/app.coffee b/app.coffee new file mode 100644 index 0000000000000..f6f4d6780158d --- /dev/null +++ b/app.coffee @@ -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 diff --git a/config.toml b/config.toml new file mode 100644 index 0000000000000..fcee2479b892d --- /dev/null +++ b/config.toml @@ -0,0 +1 @@ +siteTitle="Gatsby Starter Site" diff --git a/html.cjsx b/html.cjsx new file mode 100644 index 0000000000000..3efb6c6f582af --- /dev/null +++ b/html.cjsx @@ -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 + + + + + + + {title} + + + + +
+