diff --git a/middleman-more/features/asset_hash.feature b/middleman-more/features/asset_hash.feature index 95459245..34d9355f 100644 --- a/middleman-more/features/asset_hash.feature +++ b/middleman-more/features/asset_hash.feature @@ -5,6 +5,7 @@ Feature: Assets get a file hash appended to their and references to them are upd Then the following files should exist: | index.html | | apple-touch-icon.png | + | favicon.ico | | images/100px-1242c368.png | | images/100px-5fd6fb90.jpg | | images/100px-5fd6fb90.gif | diff --git a/middleman-more/fixtures/asset-hash-app/source/favicon.ico b/middleman-more/fixtures/asset-hash-app/source/favicon.ico new file mode 100644 index 00000000..d1d026a8 Binary files /dev/null and b/middleman-more/fixtures/asset-hash-app/source/favicon.ico differ diff --git a/middleman-more/lib/middleman-more/extensions/asset_hash.rb b/middleman-more/lib/middleman-more/extensions/asset_hash.rb index d034024e..fc3c0fbb 100755 --- a/middleman-more/lib/middleman-more/extensions/asset_hash.rb +++ b/middleman-more/lib/middleman-more/extensions/asset_hash.rb @@ -4,7 +4,7 @@ module Middleman class << self def registered(app, options={}) require 'digest/sha1' - exts = options[:exts] || %w(.ico .manifest .jpg .jpeg .png .gif .js .css) + exts = options[:exts] || %w(.jpg .jpeg .png .gif .js .css) # Allow specifying regexes to ignore, plus always ignore apple touch icons ignore = Array(options[:ignore]) << /^apple-touch-icon/