Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangxd6 committed May 18, 2019
2 parents 8950b5f + d804c7d commit 5255bf0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/components/layout.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class Layout extends React.Component {

if (location.pathname === rootPath) {
header = (
<Img fixed={image} >
<Img fluid={image} >
<Link
style={{
boxShadow: `none`,
Expand Down
6 changes: 3 additions & 3 deletions src/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class BlogIndex extends React.Component {
<Layout
location={this.props.location}
title={siteTitle}
image={data.file.childImageSharp.fixed}
image={data.file.childImageSharp.fluid}
>
<SEO
title={siteTitle}
Expand Down Expand Up @@ -81,8 +81,8 @@ export const pageQuery = graphql`
childImageSharp {
# Specify the image processing specifications right in the query.
# Makes it trivial to update as your page's design changes.
fixed(width: 600, height: 200) {
...GatsbyImageSharpFixed
fluid(maxWidth: 600, maxHeight: 200) {
...GatsbyImageSharpFluid
}
}
}
Expand Down

0 comments on commit 5255bf0

Please sign in to comment.