Merge pull request #60 from mmeinzer/master

Fixes /404/ test in post path. Issue #44
This commit is contained in:
Kyle Mathews 2017-11-02 10:18:23 -07:00 committed by GitHub
commit 370384a98c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -16,7 +16,7 @@ class BlogIndex extends React.Component {
<Helmet title={siteTitle} />
<Bio />
{posts.map(post => {
if (post.node.path !== '/404/') {
if (post.node.frontmatter.path !== '/404/') {
const title = get(post, 'node.frontmatter.title') || post.node.path
return (
<div key={post.node.frontmatter.path}>