- Commit
- ad1a0e450b55aee3eee7cf4640d30217c66db493
- Parent
- 23c444f89e7b760df12422ea553d85a1c6931a48
- Author
- Pablo <pablo-pie@riseup.net>
- Date
Fixed a bug
Should look at modification time for incremental builds, not access time
Yet another static site generator for Git 🙀️
Fixed a bug
Should look at modification time for incremental builds, not access time
1 files changed, 1 insertions, 1 deletions
Status | Name | Changes | Insertions | Deletions |
Modified | src/main.rs | 2 files changed | 1 | 1 |
diff --git a/src/main.rs b/src/main.rs @@ -577,7 +577,7 @@ impl<'repo> RepoRenderer<'repo> { // skip rendering the page if the commit the blob was last updated on is // older than the page if let Ok(meta) = fs::metadata(&page_path) { - let last_modified = meta.accessed().unwrap(); + let last_modified = meta.modified().unwrap(); if last_modified > last_commit_time[&blob.id()] { return Ok(()); }