Update scaffold.rb
This commit is contained in:
@@ -17,7 +17,7 @@ destination_dir = "./_output/"
|
|||||||
# Clean _output folder
|
# Clean _output folder
|
||||||
if Dir.exist?(destination_dir)
|
if Dir.exist?(destination_dir)
|
||||||
Dir.foreach(destination_dir) do |file|
|
Dir.foreach(destination_dir) do |file|
|
||||||
next if file == '.' || file == '..'
|
next if file == '.' || file == '..' || file == 'AUTO_GEN_FOLDER_DO_NOT_EDIT_FILE_HERE'
|
||||||
file_path = File.join(destination_dir, file)
|
file_path = File.join(destination_dir, file)
|
||||||
|
|
||||||
if File.file?(file_path)
|
if File.file?(file_path)
|
||||||
@@ -94,4 +94,4 @@ rendered_content = liquid_template.render(settings)
|
|||||||
|
|
||||||
File.open(template_file, 'w') do |file|
|
File.open(template_file, 'w') do |file|
|
||||||
file.write(rendered_content)
|
file.write(rendered_content)
|
||||||
end
|
end
|
||||||
|
Reference in New Issue
Block a user