Closed lacsinagramar closed 3 years ago
Welcome @lacsinagramar! The above does not work, because you are providing the options in the wrong way. Please have a look at the README of the source package. Other than that, gatsby-source-try-ghost
should be placed before gatsby-plugin-ghost-images
. Let me know if you can get it to work with these two changes.
@styxlab worked like a charm! I have another question though, author profileImageSharp
has a null value.
I changed my config to this, still has null
{
resolve: `gatsby-plugin-ghost-images`,
options: {
// An array of node types and image fields per node
// Image fields must contain a valid absolute path to the image to be downloaded
lookup: [
{
type: `GhostPost`,
imgTags: [`feature_image`, 'profile_image']
}
],
// Additional condition to exclude nodes
// Takes precedence over lookup
exclude: node => node.ghostId === undefined,
// Additional information messages useful for debugging
verbose: true,
// Option to disable the module (default: false)
disable: false
}
}
Also, some images were processed but the image srcset cannot be rendered. It's just the placeholder
Please open a new issue for every issue that you encounter. This helps other people navigate through the different topics.
Hi I wanted to use
gatsby-plugin-ghost-images
so I changedgatsby-source-ghost
togatsby-source-try-ghost
. But now it isn't fetching any data from my ghost apiHere's my
gatsby-config.js
:This is what I get:![image](https://user-images.githubusercontent.com/29629828/130626208-4f8bbb0d-fdd2-4b85-a974-28c52b78e975.png)