about summary refs log tree commit diff
path: root/components/Posts/PostList/index.js
diff options
context:
space:
mode:
authorPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2020-01-28 19:42:12 +0100
committerPatryk Niedźwiedziński <pniedzwiedzinski19@gmail.com>2020-01-28 19:42:12 +0100
commit4ffad967152136c69f1ef904dcfb02270a7e57a1 (patch)
tree567077e1a50d4e46d714b55b153f4aeb32974663 /components/Posts/PostList/index.js
parent0ed99e6c969119440b333cc961f4c312ee62731b (diff)
parent5305c18b05803bf0d032027e645c71ac59627621 (diff)
downloadpuszcza-4ffad967152136c69f1ef904dcfb02270a7e57a1.tar.gz
puszcza-4ffad967152136c69f1ef904dcfb02270a7e57a1.zip
Merge remote-tracking branch 'origin/develop' into feature/json-api
Diffstat (limited to 'components/Posts/PostList/index.js')
-rw-r--r--components/Posts/PostList/index.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/components/Posts/PostList/index.js b/components/Posts/PostList/index.js
index 11d44ff..7e0b1f4 100644
--- a/components/Posts/PostList/index.js
+++ b/components/Posts/PostList/index.js
@@ -12,11 +12,12 @@ export const getPosts = async () => {
   }
 }
 
-export const parsePosts = posts =>
-  posts.map(post => ({
+export const parsePosts = (posts) =>
+  posts.map((post) => ({
     title: post.content.meta.title,
+    image: post.content.meta.image,
     description: post.content.description,
-    route: post.route
+    route: post.route,
   }))
 
 export default PostList