gatsby-plugin-advanced-sitemap icon indicating copy to clipboard operation
gatsby-plugin-advanced-sitemap copied to clipboard

Images: 0 for every page

Open Olegt0rr opened this issue 4 years ago • 2 comments

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)

Olegt0rr avatar Nov 26 '20 21:11 Olegt0rr

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
		}
	}
}

yogeshkotadiya avatar Feb 10 '21 17:02 yogeshkotadiya

@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 😄

DevanB avatar Jun 20 '22 13:06 DevanB