From 64185ed724f1951af47da885c8f5143f95b94dde Mon Sep 17 00:00:00 2001 From: fauno <fauno@endefensadelsl.org> Date: Wed, 27 May 2020 16:19:22 -0300 Subject: [PATCH] use modification time --- lib/jekyll-pandoc-multiple-formats/pandoc_file.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/jekyll-pandoc-multiple-formats/pandoc_file.rb b/lib/jekyll-pandoc-multiple-formats/pandoc_file.rb index b05996d..429bf20 100644 --- a/lib/jekyll-pandoc-multiple-formats/pandoc_file.rb +++ b/lib/jekyll-pandoc-multiple-formats/pandoc_file.rb @@ -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 -- GitLab