Skip to content

Commit

Permalink
Rename filename to name
Browse files Browse the repository at this point in the history
  • Loading branch information
DirtyF committed Aug 21, 2016
1 parent 87c00b2 commit 326332a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/jekyll/static_file.rb
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def write(dest)

def to_liquid
{
"filename" => File.basename(name, extname),
"name" => File.basename(name, extname),
"extname" => extname,
"modified_time" => modified_time,
"path" => File.join("", relative_path)
Expand Down
2 changes: 1 addition & 1 deletion test/test_static_file.rb
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ def setup_static_file_with_defaults(base, dir, name, defaults)

should "be able to convert to liquid" do
expected = {
"filename" => "static_file",
"name" => "static_file",
"extname" => ".txt",
"modified_time" => @static_file.modified_time,
"path" => "/static_file.txt"
Expand Down

0 comments on commit 326332a

Please sign in to comment.