lib/w3clove/sitemap.rb in w3clove-0.6 vs lib/w3clove/sitemap.rb in w3clove-0.6.1

- old
+ new

@@ -51,10 +51,11 @@ # to absolute links, remove anchors from links, and include the sitemap url def pages_in_sitemap pages = xml_locations.map {|loc| W3Clove::Page.new(loc.text)} if pages.empty? m = MetaInspector.new(url) - links = ([m.url] + m.absolute_links.select {|l| l.start_with?(m.url)}.map {|l| l.split('#')[0]}).uniq + links = m.absolute_links.select {|l| l.start_with?(m.url)}.map {|l| l.split('#')[0]}.uniq + links << m.url unless (links.include?(m.url) || links.include?("#{m.url}/")) pages = links.map {|link| W3Clove::Page.new(link)} end pages end \ No newline at end of file