Set max height for post list images

This commit is contained in:
ponas committed 2019-03-09 12:25:29 +01:00
1 parent 220f8b6910
commit f94bcbb432
1 file changed
+8 -1
+8 -1
View File
@@ -47,6 +47,13 @@ PostList.propTypes = {
}
export const pageQuery = graphql`
fragment PostListImage on File {
childImageSharp {
fluid(maxWidth: 800, maxHeight: 600) {
...GatsbyImageSharpFluid
}
}
}
fragment PostListFields on wordpress__POST {
id
path
@@ -62,7 +69,7 @@ export const pageQuery = graphql`
date(formatString: "MMMM DD, YYYY")
featured_media {
localFile {
...FluidImage
...PostListImage
}
}
}