Force svgz to be binary
This commit is contained in:
parent
3a3d5bbe3b
commit
42320ade8d
1 changed files with 1 additions and 0 deletions
|
@ -23,6 +23,7 @@ module Middleman
|
||||||
# @return [Boolean]
|
# @return [Boolean]
|
||||||
def self.binary?(filename)
|
def self.binary?(filename)
|
||||||
ext = File.extname(filename)
|
ext = File.extname(filename)
|
||||||
|
return true if ext == '.svgz'
|
||||||
return false if Tilt.registered?(ext.sub('.',''))
|
return false if Tilt.registered?(ext.sub('.',''))
|
||||||
|
|
||||||
ext = ".#{ext}" unless ext.to_s[0] == ?.
|
ext = ".#{ext}" unless ext.to_s[0] == ?.
|
||||||
|
|
Loading…
Reference in a new issue