Add plugins to create responsive images

This commit is contained in:
Moris Zen
2018-07-06 10:18:15 +02:00
parent 7867ae3b09
commit 992359788d
4 changed files with 1357 additions and 41 deletions

View File

@@ -12,7 +12,9 @@ module.exports = {
protocol: 'https', protocol: 'https',
hostingWPCOM: false, hostingWPCOM: false,
useACF: true, useACF: true,
} },
} },
'gatsby-transformer-sharp',
'gatsby-plugin-sharp',
], ],
} }

View File

@@ -8,7 +8,9 @@
"gatsby-link": "^1.6.40", "gatsby-link": "^1.6.40",
"gatsby-plugin-netlify": "^1.0.21", "gatsby-plugin-netlify": "^1.0.21",
"gatsby-plugin-react-helmet": "^2.0.10", "gatsby-plugin-react-helmet": "^2.0.10",
"gatsby-plugin-sharp": "^1.6.48",
"gatsby-source-wordpress": "^2.0.93", "gatsby-source-wordpress": "^2.0.93",
"gatsby-transformer-sharp": "^1.6.27",
"react-helmet": "^5.2.0", "react-helmet": "^5.2.0",
"slideout": "^1.0.1" "slideout": "^1.0.1"
}, },

View File

@@ -13,7 +13,7 @@ class Blog extends Component {
<Card <Card
url={`blog/${node.slug}`} url={`blog/${node.slug}`}
title={node.title} title={node.title}
postId={node.slug} postId={node.id}
date={node.date} date={node.date}
excerpt={node.excerpt} excerpt={node.excerpt}
/> />
@@ -31,6 +31,7 @@ export const query = graphql`
id id
title title
excerpt excerpt
status
slug slug
date(formatString: "MMMM DD, YYYY") date(formatString: "MMMM DD, YYYY")
} }

1387
yarn.lock

File diff suppressed because it is too large Load Diff