Skip to content

Commit

Permalink
Fix allSite query (#1946)
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleAMathews authored Aug 28, 2017
1 parent d0e8fc0 commit 0446fd2
Showing 1 changed file with 10 additions and 14 deletions.
24 changes: 10 additions & 14 deletions examples/using-javascript-transforms/src/layouts/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import BlogPost from "./blog-post"

class MasterLayout extends React.Component {
render() {
let siteMetadata = this.props.data.allSite.edges[0].node.siteMetadata
let siteMetadata = this.props.data.site.siteMetadata
let location = this.props.location.pathname
let jimmyPage // you jimmy a lock until it opens, so same thing here ;)

Expand Down Expand Up @@ -46,19 +46,15 @@ export default MasterLayout

export const pageQuery = graphql`
query LayoutBySlug {
allSite {
edges {
node {
siteMetadata {
title
siteDescr
siteAuthor
siteEmailUrl
siteEmailPretty
siteTwitterUrl
siteTwitterPretty
}
}
site {
siteMetadata {
title
siteDescr
siteAuthor
siteEmailUrl
siteEmailPretty
siteTwitterUrl
siteTwitterPretty
}
}
}
Expand Down

0 comments on commit 0446fd2

Please sign in to comment.