doctype xml
urlset(
  xmlns='http://www.sitemaps.org/schemas/sitemap/0.9'
  xmlns:image="http://www.google.com/schemas/sitemap-image/1.1"
)
  for artwork in models
    url
      loc='https://www.artsy.net/artwork/' + artwork.id
      image:image
        //-per Google: 'make sure that the hosting site (i.e. cloudfront) is verified in Search Console OR that you submit your sitemap using robots.txt
        image:loc=artwork.images[0].image_urls.large
        image:title=artwork.title
        if artwork.artist
          image:caption=artwork.title + ' is a work of art created by ' + artwork.artist.name + ' in ' + artwork.date + '.'
        else
          image:caption=artwork.title + ' is a work of art created in ' + artwork.date + '.'




doctype xml
urlset(
  xmlns='http://www.sitemaps.org/schemas/sitemap/0.9'
  xmlns:image="http://www.google.com/schemas/sitemap-image/1.1"
)
  for artwork in models
    url
      loc='https://www.artsy.net/artwork/' + artwork.id
      image:image
        //-per Google: 'make sure that the hosting site (i.e. cloudfront) is verified in Search Console OR that you submit your sitemap using robots.txt
        if artwork.images[0].image_urls.large
          image:loc=artwork.images[0].image_urls.large
        else
          image:loc=artwork.images[0].image_urls.square
        image:title=artwork.title
        if artwork.artist
          image:caption=artwork.title + ' is a work of art created by ' + artwork.artist.name + ' in ' + artwork.date + '.'
        else
          image:caption=artwork.title + ' is a work of art created in ' + artwork.date + '.'




Fix for when there's no "large" image url
Fix for when there's no "large" image url
