From 7867ae3b0994e7a199c3fe049f884dfda97aa356 Mon Sep 17 00:00:00 2001 From: Moris Zen Date: Fri, 6 Jul 2018 09:35:17 +0200 Subject: [PATCH] Fetch posts frm wp on blog page --- src/components/Card.js | 22 +++++++++++++--------- src/templates/blog.js | 16 +++++++++------- 2 files changed, 22 insertions(+), 16 deletions(-) diff --git a/src/components/Card.js b/src/components/Card.js index f132ed3..d40194f 100644 --- a/src/components/Card.js +++ b/src/components/Card.js @@ -4,24 +4,28 @@ import Link from 'gatsby-link' import ImgSprint from '../images/wow-we-did-design-sprint-remotely.png' const Card = ({ ...props }) => ( -
- Sprint Work +
+ + Sprint Work +
- How we do remote design sprints + {props.title} - {props.date}
-

- It’s amazing how design can impact business and people making the world - a better and a friendlier place. Knowing the how important design today - is, here’s a complete rundown of our design process in it’s fully glory. -

+

#workstyle
-
+ ) export default Card diff --git a/src/templates/blog.js b/src/templates/blog.js index 4ccebc2..e1f4c32 100644 --- a/src/templates/blog.js +++ b/src/templates/blog.js @@ -1,6 +1,8 @@ import React, { Component } from 'react' import Link from 'gatsby-link' +import Card from '../components/Card' + class Blog extends Component { render() { const data = this.props.data @@ -8,13 +10,13 @@ class Blog extends Component {

Blog Posts

{data.allWordpressPost.edges.map(({ node }) => ( -
- -

{node.title}

- - {node.date} -

-

+ ))}
)