Use the proper extname getter.

This commit is contained in:
Parker Moore 2014-08-12 14:11:27 -04:00
parent 8ff9074ce5
commit 707278f099
1 changed files with 2 additions and 2 deletions

View File

@ -150,14 +150,14 @@ module Jekyll
#
# Returns true if extname == .sass or .scss, false otherwise.
def sass_file?
%w[.sass .scss].include?(extname)
%w[.sass .scss].include?(ext)
end
# Determine whether the document is a CoffeeScript file.
#
# Returns true if extname == .coffee, false otherwise.
def coffeescript_file?
'.coffee'.eql?(extname)
'.coffee'.eql?(ext)
end
# Determine whether the file should be rendered with Liquid.