lib/awestruct/extensions/sitemap.rb in awestruct-0.5.7 vs lib/awestruct/extensions/sitemap.rb in awestruct-0.6.0.RC1
- old
+ new
@@ -9,11 +9,11 @@
module Extensions
class Sitemap
def initialize
@excluded_files = [ '/.htaccess', '/favicon.ico' ,'/robots.txt', ].to_set
- @excluded_extensions = ['.atom', '.scss', '.css', '.png', '.jpg', '.gif', '.js' ].to_set
+ @excluded_extensions = ['.atom', '.scss', '.css', '.less', '.png', '.jpg', '.gif', '.js', '.ico', '.svg', '' ].to_set
end
def execute( site )
# Add additional excludes from _config/sitemap.yml
@@ -64,10 +64,10 @@
protected
def set_sitemap_data( page )
site = page.site
munge_date( page )
- page.priority ||= (site.priority or 0.1)
+ page.priority ||= (site.priority or 0.5)
page.change_frequency ||= (site.change_frequency or 'never')
page
end
def munge_date( page )