We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ba656cd commit c434909Copy full SHA for c434909
lib/jekyll-admin/server.rb
@@ -72,9 +72,10 @@ def document_body
72
def write_file(path, content)
73
path = sanitized_path(path)
74
FileUtils.mkdir_p File.dirname(path)
75
- file = File.write path, content
+ File.open(path, "wb") do |file|
76
+ file.write(content)
77
+ end
78
site.process
- file
79
end
80
81
def delete_file(path)
0 commit comments