Merge pull request #4640 from surrim/symlink_static_files
Merge pull request 4640
This commit is contained in:
commit
1ab0ed3664
|
@ -80,7 +80,11 @@ module Jekyll
|
||||||
|
|
||||||
FileUtils.mkdir_p(File.dirname(dest_path))
|
FileUtils.mkdir_p(File.dirname(dest_path))
|
||||||
FileUtils.rm(dest_path) if File.exist?(dest_path)
|
FileUtils.rm(dest_path) if File.exist?(dest_path)
|
||||||
FileUtils.cp(path, dest_path)
|
if @site.safe || Jekyll.env == "production"
|
||||||
|
FileUtils.cp(path, dest_path)
|
||||||
|
else
|
||||||
|
FileUtils.copy_entry(path, dest_path)
|
||||||
|
end
|
||||||
File.utime(@@mtimes[path], @@mtimes[path], dest_path)
|
File.utime(@@mtimes[path], @@mtimes[path], dest_path)
|
||||||
|
|
||||||
true
|
true
|
||||||
|
|
Loading…
Reference in New Issue