diff --git a/package.json b/package.json index d64298b..a5a7e60 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "url": "https://github.com/gatsbyjs/gatsby-starter-blog/issues" }, "dependencies": { - "gatsby": "^1.8.10", + "gatsby": "^1.8.11", "gatsby-link": "^1.6.7", "gatsby-plugin-google-analytics": "^1.0.3", "gatsby-plugin-manifest": "^1.0.3", diff --git a/src/pages/index.js b/src/pages/index.js index d990a59..794f56a 100644 --- a/src/pages/index.js +++ b/src/pages/index.js @@ -1,42 +1,46 @@ -import React from 'react' -import Link from 'gatsby-link' -import get from 'lodash/get' -import Helmet from 'react-helmet' +import React from "react" +import Link from "gatsby-link" +import get from "lodash/get" +import Helmet from "react-helmet" -import Bio from '../components/Bio' -import { rhythm } from '../utils/typography' +import Bio from "../components/Bio" +import { rhythm } from "../utils/typography" class BlogIndex extends React.Component { render() { - // console.log("props", this.props) - const pageLinks = [] - const siteTitle = get(this, 'props.data.site.siteMetadata.title') - const posts = get(this, 'props.data.allMarkdownRemark.edges') - posts.forEach(post => { - if (post.node.path !== '/404/') { - const title = get(post, 'node.frontmatter.title') || post.node.path - pageLinks.push( -