Update starter to latest canary
This commit is contained in:
parent
1d2329c1c9
commit
6a806c21cd
8 changed files with 1295 additions and 1624 deletions
|
|
@ -44,7 +44,7 @@ module.exports = React.createClass({
|
|||
</head>
|
||||
<body>
|
||||
<div
|
||||
id="react-mount"
|
||||
id="___gatsby"
|
||||
dangerouslySetInnerHTML={{ __html: this.props.body }}
|
||||
/>
|
||||
{this.props.postBodyComponents}
|
||||
|
|
|
|||
|
|
@ -59,14 +59,14 @@ class Template extends React.Component {
|
|||
}}
|
||||
>
|
||||
{header}
|
||||
{children}
|
||||
{children()}
|
||||
</Container>
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
Template.propTypes = {
|
||||
children: React.PropTypes.any,
|
||||
children: React.PropTypes.function,
|
||||
location: React.PropTypes.object,
|
||||
route: React.PropTypes.object,
|
||||
}
|
||||
|
|
@ -9,7 +9,7 @@ import { rhythm } from "../utils/typography"
|
|||
|
||||
class BlogIndex extends React.Component {
|
||||
render() {
|
||||
console.log(this.props)
|
||||
// console.log("props", this.props)
|
||||
const pageLinks = []
|
||||
const siteTitle = get(this, "props.data.site.siteMetadata.title")
|
||||
const posts = get(this, "props.data.allMarkdownRemark.edges")
|
||||
|
|
@ -49,8 +49,8 @@ BlogIndex.propTypes = {
|
|||
|
||||
export default BlogIndex
|
||||
|
||||
export const pageQuery = `
|
||||
{
|
||||
export const pageQuery = graphql`
|
||||
query IndexQuery {
|
||||
site {
|
||||
siteMetadata {
|
||||
title
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ class BlogPostRoute extends React.Component {
|
|||
render() {
|
||||
const post = this.props.data.markdownRemark
|
||||
const siteTitle = get(this.props, "data.site.siteMetadata.title")
|
||||
console.log(this.props)
|
||||
// console.log(this.props)
|
||||
|
||||
return (
|
||||
<div>
|
||||
|
|
@ -40,7 +40,7 @@ class BlogPostRoute extends React.Component {
|
|||
|
||||
export default BlogPostRoute
|
||||
|
||||
export const pageQuery = `
|
||||
export const pageQuery = graphql`
|
||||
query BlogPostByPath($slug: String!) {
|
||||
site {
|
||||
siteMetadata {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue