diff --git a/lib/jekyll-import/importers/drupal_common.rb b/lib/jekyll-import/importers/drupal_common.rb index 5e321b2a..f1d6e2b7 100644 --- a/lib/jekyll-import/importers/drupal_common.rb +++ b/lib/jekyll-import/importers/drupal_common.rb @@ -68,6 +68,7 @@ def process(options) src_dir = conf["source"] dirs = { + :_aliases => src_dir, :_posts => File.join(src_dir, "_posts").to_s, :_drafts => File.join(src_dir, "_drafts").to_s, :_layouts => Jekyll.sanitized_path(src_dir, conf["layouts_dir"].to_s), @@ -146,10 +147,10 @@ def process(options) if partition.first.length.positive? dir = "#{partition.first}/" - FileUtils.mkdir_p partition.first + FileUtils.mkdir_p "#{dirs[:_aliases]}#{dir}" end - File.open("#{dir}#{file}.md", "w") do |f| + File.open("#{dirs[:_aliases]}#{dir}#{file}.md", "w") do |f| f.puts "---" f.puts "layout: refresh" f.puts "permalink: #{dir}#{file}/"