Rename filename to name
This commit is contained in:
parent
87c00b2756
commit
326332a5d5
|
@ -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)
|
||||||
|
|
|
@ -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"
|
||||||
|
|
Loading…
Reference in New Issue