Update scaffold.rb

This commit is contained in:
ZhgChgLi 2024-10-27 10:48:59 +08:00 committed by GitHub
parent 9b956ee6e5
commit c3c0b68ac8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -17,7 +17,7 @@ destination_dir = "./_output/"
# Clean _output folder
if Dir.exist?(destination_dir)
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)
if File.file?(file_path)
@ -94,4 +94,4 @@ rendered_content = liquid_template.render(settings)
File.open(template_file, 'w') do |file|
file.write(rendered_content)
end
end