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

Images: 0 for every page #113

Open
Olegt0rr opened this issue Nov 26, 2020 · 2 comments
Open

Images: 0 for every page #113

Olegt0rr opened this issue Nov 26, 2020 · 2 comments

Comments

@Olegt0rr
Copy link

Olegt0rr commented Nov 26, 2020

Issue Summary

gatsby-plugin-advanced-sitemap didn't see any images on my page
Should I use any special tags to correctly detect it?

Example image in my code:

<picture>
  <source type="image/webp" srcSet={logo_webp}/>
  <source type="image/jpg" srcSet={logo}/>
  <img src={mafia_logo} alt="Logo"/>
</picture>

Technical details:

  • Gatsby Version: 2.27.3
  • Node Version: 15.3.0
  • OS: Linux (node:latest docker)
  • gatsby-config.js: (without any options)
@yogeshkotadiya
Copy link
Collaborator

You must provide an image source in your GraphQL query.
It could be either cover_image || profile_image || feature_image.

e.g.

allGhostPost {
	edges {
		node {
			id
			slug
			updated_at
			feature_image
		}
	}
}

@DevanB
Copy link

DevanB commented Jun 20, 2022

@yogeshkotadiya I hate to dig up an old issue...

This was valuable information (that should be in some sort of README). However, it is counter-productive to include the images count if the count is 0. Is there a way to not allow the images column to be generated?

Thanks much 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants