From 77618b8298d8defe1a1d58929fa9051519514021 Mon Sep 17 00:00:00 2001 From: bdillahu Date: Sat, 28 Jul 2012 23:12:39 -0300 Subject: [PATCH] Update lib/jekyll/page.rb Fixing usage with Octopress where ">" comparison doesn't work. Based on info from https://github.com/soonhokong pull request --- lib/jekyll/page.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/jekyll/page.rb b/lib/jekyll/page.rb index bf3761b1371..2ebe1b492a4 100644 --- a/lib/jekyll/page.rb +++ b/lib/jekyll/page.rb @@ -166,7 +166,11 @@ def source def modified?(dest) dest_path = self.destination(dest) return true if not File.exist?(dest_path) - self.mtime > File.stat(dest_path).mtime + if (self.mtime <=> File.stat(dest_path).mtime) == 1 then + return true + else + return false + end end def explicit_dependencies