Skip to content
This repository has been archived by the owner on Oct 6, 2021. It is now read-only.

Support for Images #3

Open
F1LT3R opened this issue Aug 12, 2016 · 1 comment
Open

Support for Images #3

F1LT3R opened this issue Aug 12, 2016 · 1 comment

Comments

@F1LT3R
Copy link

F1LT3R commented Aug 12, 2016

It would be great to get image support in the sitemap.

<?xml version="1.0" encoding="UTF-8"?>
 <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
  xmlns:image="http://www.google.com/schemas/sitemap-image/1.1">
 <url>
   <loc>http://website.com/page.html</loc>
   <image:image>
     <image:loc>http://website.com/image1.jpg</image:loc>
   </image:image>
   <image:image>
     <image:loc>http://website.com.com/image2.jpg</image:loc>
   </image:image>
 </url> 
</urlset>

You could use the Cheerio package to parse the html and collect the images for the map.

@mrhyde
Copy link
Member

mrhyde commented Aug 13, 2016

We have already this feature on our todo list but since there is an actual request for it we will try to implement it in a couple of days, so stay tuned :)

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

No branches or pull requests

3 participants