Skip to content

Commit

Permalink
Fix double dot issue
Browse files Browse the repository at this point in the history
  • Loading branch information
denisdefreyne committed Jan 31, 2015
1 parent e4e3488 commit 464dc5f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/nanoc/cli/commands/create-site.rb
Expand Up @@ -130,7 +130,7 @@ def array_to_yaml(array)
item.identifier.chop + '.css'
elsif item.binary?
# Write item with identifier /foo/ to /foo.ext
item.identifier.chop + '.' + (item[:extension] ? '.' + item[:extension] : '')
item.identifier.chop + (item[:extension] ? '.' + item[:extension] : '')
else
# Write item with identifier /foo/ to /foo/index.html
item.identifier + 'index.html'
Expand Down
2 changes: 2 additions & 0 deletions test/cli/commands/test_create_site.rb
Expand Up @@ -26,6 +26,8 @@ def test_can_compile_new_site_with_binary_items
site = Nanoc::Site.new('.')
site.load_data
site.compile

assert File.file?('output/blah')
end
end

Expand Down

0 comments on commit 464dc5f

Please sign in to comment.