lib/awestruct/extensions/sitemap.rb in awestruct-0.5.4.rc3 vs lib/awestruct/extensions/sitemap.rb in awestruct-0.5.4

- old
+ new

@@ -81,10 +81,14 @@ page.lastmod = Time.now.strftime( "%Y-%m-%d" ) end end def valid_sitemap_entry( page ) - !@excluded_files.member?(page.output_path) && !@excluded_extensions.member?(page.output_extension) + if @excluded_files.member?(page.output_path) || @excluded_extensions.member?(page.output_extension) || page.sitemap_exclude + false + else + true + end end end end end