Ignore apple-touch-icon files from asset_hash

This commit is contained in:
Ben Hollis 2012-05-20 21:01:35 -07:00
parent 340922659a
commit 045f25fa4e

View file

@ -5,7 +5,8 @@ module Middleman::Extensions
def registered(app, options)
exts = options[:exts] || %w(.jpg .jpeg .png .gif .js .css)
ignore = Array(options[:ignore])
# Allow specifying regexes to ignore, plus always ignore apple touch icons
ignore = Array(options[:ignore]) << /^apple-touch-icon/
app.ready do
sitemap.register_resource_list_manipulator(