mirror of
https://github.com/seigler/dash-docs
synced 2025-07-27 09:46:12 +00:00
Fix FTBFS in templates.rb when destination folder doesn't exist
This commit is contained in:
parent
45c360b626
commit
f72b3cab81
1 changed files with 3 additions and 0 deletions
|
@ -61,6 +61,9 @@ module Jekyll
|
||||||
dst = redirect['dst']
|
dst = redirect['dst']
|
||||||
dst = locs[lang]['url'][dst]
|
dst = locs[lang]['url'][dst]
|
||||||
next if dst.nil?
|
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.open(site.dest + '/' + lang + '/' + src, 'w+') do |file|
|
||||||
file.puts '<!DOCTYPE HTML>'
|
file.puts '<!DOCTYPE HTML>'
|
||||||
file.puts '<html><head>'
|
file.puts '<html><head>'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue