Skip to content
Snippets Groups Projects
Commit e8a055a9 authored by fauno's avatar fauno
Browse files

Merge branch 'hotfix/issue-3'

parents 704d1f7b 08cab34c
No related branches found
No related tags found
No related merge requests found
......@@ -23,6 +23,8 @@ class PandocGenerator < Generator
FileUtils.mkdir_p(post_path)
filename = post.url.gsub(/\.html$/, ".#{output}")
# Have a filename!
filename = "#{post.url.gsub(/\//, "-").gsub(/-$/, "")}.#{output}" if filename =~ /\/$/
filename_with_path = File.join(post_path, filename)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment