Skip to content
Snippets Groups Projects
Commit 64185ed7 authored by fauno's avatar fauno
Browse files

use modification time

parent 668e168c
No related branches found
No related tags found
No related merge requests found
......@@ -382,9 +382,10 @@ module Jekyll
@sources = @sources.flatten.compact
end
# Only rebuild if the path doesn't exist
def rebuild?
!File.exist?(path) || sources.map do |f|
File.ctime(f) > File.ctime(path)
File.mtime(f) > File.mtime(path)
end.any?
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment