Use the proper extname getter.
This commit is contained in:
parent
8ff9074ce5
commit
707278f099
|
@ -150,14 +150,14 @@ module Jekyll
|
||||||
#
|
#
|
||||||
# Returns true if extname == .sass or .scss, false otherwise.
|
# Returns true if extname == .sass or .scss, false otherwise.
|
||||||
def sass_file?
|
def sass_file?
|
||||||
%w[.sass .scss].include?(extname)
|
%w[.sass .scss].include?(ext)
|
||||||
end
|
end
|
||||||
|
|
||||||
# Determine whether the document is a CoffeeScript file.
|
# Determine whether the document is a CoffeeScript file.
|
||||||
#
|
#
|
||||||
# Returns true if extname == .coffee, false otherwise.
|
# Returns true if extname == .coffee, false otherwise.
|
||||||
def coffeescript_file?
|
def coffeescript_file?
|
||||||
'.coffee'.eql?(extname)
|
'.coffee'.eql?(ext)
|
||||||
end
|
end
|
||||||
|
|
||||||
# Determine whether the file should be rendered with Liquid.
|
# Determine whether the file should be rendered with Liquid.
|
||||||
|
|
Loading…
Reference in New Issue