Set max height for post list images
This commit is contained in:
1 parent
220f8b6910
commit
f94bcbb432
1 file changed
+8
-1
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user