Skip to content

Commit

Permalink
#34 Add gatsby-remark-images (and gatsby-remark-relative-images to al…
Browse files Browse the repository at this point in the history
…low Netlify CMS)
  • Loading branch information
jcmnunes committed Aug 15, 2018
1 parent 03e5c28 commit aec6fb8
Show file tree
Hide file tree
Showing 5 changed files with 4,812 additions and 299 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Expand Up @@ -6,3 +6,5 @@ node_modules
public/
.DS_Store
yarn-error.log
.idea

13 changes: 13 additions & 0 deletions gatsby-config.js
Expand Up @@ -12,6 +12,19 @@ module.exports = {
options: {
plugins: [
'gatsby-remark-prismjs',
{
resolve: 'gatsby-remark-relative-images',
},
{
resolve: 'gatsby-remark-images',
options: {
// It's important to specify the maxWidth (in pixels) of
// the content container as this plugin uses this as the
// base for generating different widths of each image.
maxWidth: 590,
wrapperStyle: 'margin: 15px -30px !important',
},
},
],
},
},
Expand Down
130 changes: 130 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions package.json
Expand Up @@ -12,7 +12,9 @@
"gatsby-plugin-react-helmet": "^1.0.8",
"gatsby-plugin-react-next": "^1.0.5",
"gatsby-plugin-sharp": "^1.6.48",
"gatsby-remark-images": "^1.5.67",
"gatsby-remark-prismjs": "^2.0.5",
"gatsby-remark-relative-images": "^0.1.2",
"gatsby-source-filesystem": "^1.5.36",
"gatsby-transformer-remark": "^1.7.42",
"gatsby-transformer-sharp": "^1.6.24",
Expand Down

0 comments on commit aec6fb8

Please sign in to comment.