Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update gatsby deps and gatsby-source-contentful to version 4 #145

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .env.development
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
CONTENTFUL_SPACE_ID=1oa4vozotg3n
CONTENTFUL_ACCESS_TOKEN=-2GRCnKkkox_pSuLQcIg3-sQgBFOIRM8VnvEOtilwQ0
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@
"url": "https://github.com/contentful/starter-gatsby-blog/issues"
},
"dependencies": {
"gatsby": "^2.23.9",
"gatsby-image": "^2.4.8",
"gatsby-plugin-react-helmet": "^3.3.5",
"gatsby-plugin-sharp": "^2.6.43",
"gatsby-source-contentful": "^2.3.17",
"gatsby-transformer-remark": "^2.8.18",
"gatsby-transformer-sharp": "^2.5.6",
"gatsby": "^2.29.0",
"gatsby-image": "^2.8.0",
"gatsby-plugin-react-helmet": "^3.7.0",
"gatsby-plugin-sharp": "^2.11.1",
"gatsby-source-contentful": "^4.3.0",
"gatsby-transformer-remark": "^2.13.0",
"gatsby-transformer-sharp": "^2.9.0",
"gh-pages": "^3.1.0",
"lodash": "^4.17.15",
"react": "^16.13.1",
Expand Down
2 changes: 1 addition & 1 deletion src/components/article-preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import styles from './article-preview.module.css'

export default ({ article }) => (
<div className={styles.preview}>
<Img alt="" fluid={article.heroImage.fluid} />
{article.heroImage.fluid && (<Img alt="" fluid={article.heroImage.fluid} />)}
<h3 className={styles.previewTitle}>
<Link to={`/blog/${article.slug}`}>{article.title}</Link>
</h3>
Expand Down