Merge pull request #60 from mmeinzer/master
Fixes /404/ test in post path. Issue #44
This commit is contained in:
commit
370384a98c
1 changed files with 1 additions and 1 deletions
|
|
@ -16,7 +16,7 @@ class BlogIndex extends React.Component {
|
||||||
<Helmet title={siteTitle} />
|
<Helmet title={siteTitle} />
|
||||||
<Bio />
|
<Bio />
|
||||||
{posts.map(post => {
|
{posts.map(post => {
|
||||||
if (post.node.path !== '/404/') {
|
if (post.node.frontmatter.path !== '/404/') {
|
||||||
const title = get(post, 'node.frontmatter.title') || post.node.path
|
const title = get(post, 'node.frontmatter.title') || post.node.path
|
||||||
return (
|
return (
|
||||||
<div key={post.node.frontmatter.path}>
|
<div key={post.node.frontmatter.path}>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue