Add author and date to blog posts, stylistic changes, graphql changes

This commit is contained in:
Morris
2018-10-03 20:14:31 +02:00
parent bf9bf50de1
commit 4009a5ec48
6 changed files with 37 additions and 5 deletions

View File

@@ -187,6 +187,7 @@ const IndexPage = ({ ...props }) => (
url={`blog/${node.slug}`}
title={node.title}
date={node.date}
authorName={node.author.name}
imgAlt={node.title}
excerpt={node.excerpt}
image={
@@ -218,6 +219,10 @@ export const query = graphql`
node {
id
title
author {
id
name
}
excerpt
status
slug