From 3cf7d7a62547ae433f55a3a34b12b9e9ef1a8447 Mon Sep 17 00:00:00 2001 From: Matt Date: Sun, 29 Jul 2018 20:54:36 +1000 Subject: [PATCH] Adding Gatsby's graphql import To avoid warnings during dev process. --- src/pages/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/index.js b/src/pages/index.js index 2bd5a77..7e3fe9d 100644 --- a/src/pages/index.js +++ b/src/pages/index.js @@ -1,5 +1,5 @@ import React from 'react' -import { Link } from 'gatsby' +import { Link, graphql } from 'gatsby' import get from 'lodash/get' import Helmet from 'react-helmet' @@ -42,7 +42,7 @@ class BlogIndex extends React.Component { export default BlogIndex export const pageQuery = graphql` - query IndexQuery { + query { site { siteMetadata { title