Skip to content

Commit b34e8db

Browse files
committed
Processes site when writing file
1 parent 1e87661 commit b34e8db

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

lib/jekyll-admin/file_helper.rb

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,7 @@ def write_file(path, content)
2222
File.open(path, "wb") do |file|
2323
file.write(content)
2424
end
25-
# we should fully process in dev mode for tests to pass
26-
if ENV["RACK_ENV"] == "production"
27-
site.read
28-
else
29-
site.process
30-
end
25+
site.process
3126
end
3227

3328
# Delete the file at the given path

0 commit comments

Comments
 (0)