Ignore the 404 page

This commit is contained in:
Kyle Mathews 2016-03-08 22:46:49 -08:00
parent 655448def2
commit 0aa5a0ea64

View file

@ -15,7 +15,7 @@ class BlogIndex extends React.Component {
access(page, 'data.date') access(page, 'data.date')
).reverse() ).reverse()
sortedPages.forEach((page) => { sortedPages.forEach((page) => {
if (access(page, 'file.ext') === 'md') { if (access(page, 'file.ext') === 'md' && page.path !== '/404/') {
const title = access(page, 'data.title') || page.path const title = access(page, 'data.title') || page.path
pageLinks.push( pageLinks.push(
<li <li