Skip to content

Commit

Permalink
Merge pull request #18 from w3f-webops/feat/theme-option-transformer-…
Browse files Browse the repository at this point in the history
…remark-include

gatsbyTransformerRemarkInclude as theme option
  • Loading branch information
4www authored Apr 6, 2022
2 parents d427a0f + 2c1a19b commit f5a6843
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion gatsby-theme-w3f/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ plugins: [
{
resolve: `@w3f/gatsby-theme-w3f`,
options: {
i18nLanguages: ['en', 'fr']
i18nLanguages: ['en', 'fr'],
gatsbyTransformerRemarkInclude: ['featured_image', 'markdownremark', 'image'],
}
},
]
Expand Down
3 changes: 2 additions & 1 deletion gatsby-theme-w3f/gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ module.exports = ({
/* theme options, passed from the project it is imported in */
i18nLanguages = ['en'],
siteUrl = 'https://example.com/',
gatsbyTransformerRemarkInclude: ['featured_image', 'markdownremark', 'image'],
}) => ({
siteMetadata: {
title: `Gatsby theme`,
Expand Down Expand Up @@ -119,7 +120,7 @@ module.exports = ({
options: {
/* `/media/` already in img.src */
staticFolderName: path.resolve('./content'),
include: ['featured_image', 'markdownremark', 'image'],
include: gatsbyTransformerRemarkInclude,
},
},
// gatsby-remark-relative-images must go before gatsby-remark-images
Expand Down
2 changes: 1 addition & 1 deletion gatsby-theme-w3f/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@w3f/gatsby-theme-w3f",
"private": false,
"description": "w3f gatsby theme",
"version": "0.0.17",
"version": "0.0.18",
"author": "W3F <[email protected]>",
"keywords": [
"gatsby"
Expand Down

0 comments on commit f5a6843

Please sign in to comment.