Rename filename to name

This commit is contained in:
Frank Taillandier 2016-08-21 21:32:26 +02:00
parent 87c00b2756
commit 326332a5d5
No known key found for this signature in database
GPG Key ID: E73258E3F50AEB7E
2 changed files with 2 additions and 2 deletions

View File

@ -97,7 +97,7 @@ module Jekyll
def to_liquid def to_liquid
{ {
"filename" => File.basename(name, extname), "name" => File.basename(name, extname),
"extname" => extname, "extname" => extname,
"modified_time" => modified_time, "modified_time" => modified_time,
"path" => File.join("", relative_path) "path" => File.join("", relative_path)

View File

@ -134,7 +134,7 @@ class TestStaticFile < JekyllUnitTest
should "be able to convert to liquid" do should "be able to convert to liquid" do
expected = { expected = {
"filename" => "static_file", "name" => "static_file",
"extname" => ".txt", "extname" => ".txt",
"modified_time" => @static_file.modified_time, "modified_time" => @static_file.modified_time,
"path" => "/static_file.txt" "path" => "/static_file.txt"