From 1641186ad50c549e574143428073cb185a2df7d6 Mon Sep 17 00:00:00 2001 From: Moris Zen Date: Fri, 6 Jul 2018 10:23:57 +0200 Subject: [PATCH] Add resolutions to featured images --- src/templates/blog.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/templates/blog.js b/src/templates/blog.js index 2eac960..dae8806 100644 --- a/src/templates/blog.js +++ b/src/templates/blog.js @@ -34,6 +34,17 @@ export const query = graphql` status slug date(formatString: "MMMM DD, YYYY") + featured_media { + localFile { + childImageSharp { + resolutions(width: 600, height: 300) { + src + width + height + } + } + } + } } } }