diff --git a/src/Extensions/GoogleSitemapSiteTreeExtension.php b/src/Extensions/GoogleSitemapSiteTreeExtension.php index 65a940d..29b9cfb 100644 --- a/src/Extensions/GoogleSitemapSiteTreeExtension.php +++ b/src/Extensions/GoogleSitemapSiteTreeExtension.php @@ -160,7 +160,7 @@ class GoogleSitemapSiteTreeExtension extends GoogleSitemapExtension } } - $this->owner->extend('updateImagesForSitemap', $list); + $list = $this->owner->extend('updateImagesForSitemap', $list); return $list; } diff --git a/templates/xml-sitemap.ss b/templates/xml-sitemap.ss index 33b4ca6..5de777a 100644 --- a/templates/xml-sitemap.ss +++ b/templates/xml-sitemap.ss @@ -42,29 +42,30 @@ - - - - - - - - - - - - - + + + + +
Images
- - - + <% if $imagesCount %> + + + + + + + - - - - -
Images
-
+ +
+ + + + + +
+
+ <% end_if %>