Add StaticFile#to_liquid['extname'] :)

This commit is contained in:
Parker Moore
2014-02-19 13:55:58 -05:00
parent 33490e4efc
commit e3dd908d55
3 changed files with 9 additions and 5 deletions

View File

@@ -75,7 +75,8 @@ module Jekyll
def to_liquid
{
"path" => relative_path,
"modified_time" => mtime.to_s
"modified_time" => mtime.to_s,
"extname" => File.extname(relative_path)
}
end
end