diff --git a/_plugins/templates.rb b/_plugins/templates.rb index 11ebb623..7d82affe 100644 --- a/_plugins/templates.rb +++ b/_plugins/templates.rb @@ -61,6 +61,9 @@ module Jekyll dst = redirect['dst'] dst = locs[lang]['url'][dst] next if dst.nil? + if !File.directory?(site.dest + '/' + lang) + Dir.mkdir(site.dest + '/' + lang) + end File.open(site.dest + '/' + lang + '/' + src, 'w+') do |file| file.puts '' file.puts ''