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

Add image to GoogleLingSitemapUrl #55

Open
Klapsa2503 opened this issue May 27, 2022 · 0 comments
Open

Add image to GoogleLingSitemapUrl #55

Klapsa2503 opened this issue May 27, 2022 · 0 comments

Comments

@Klapsa2503
Copy link

Currently we can add alternatees by using GoogleLinkSitemapUrl and images by using GoogleImageSitemapUrl. In my case I want to have both at the same time to achieve following output:

<url>
  <loc>http://www.example.com/en/product-1</loc>
  <xhtml:link rel="alternate" hreflang="de" href="http://www.example.com/de/product-1" />
  <xhtml:link rel="alternate" hreflang="en" href="http://www.example.com/en/product-1" />
  <image:image>
   <image:loc>http://www.example.com/image1.jpg</image:loc>
  </image:image>
  <image:image>
   <image:loc>http://www.example.com/image2.jpg</image:loc>
  </image:image>
</url>

What do you think? My idea is to add images to GoogleLinkSitemapUrl and maybe deprecate GoogleImageSitemapUrl. I will implement it myself but want to confirm solution with the community first

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

1 participant