about summary refs log tree commit diff
path: root/src/exe.zig
diff options
context:
space:
mode:
authorRobert Günzler <r@gnzler.io>2026-01-29 19:16:23 +0100
committerRobert Günzler <r@gnzler.io>2026-01-29 21:05:54 +0100
commit8f8ee8697131ea149568a02b77f23dc8dedae99a (patch)
tree7fad212b20fc623905c74180c292d3a9512a9aa2 /src/exe.zig
parent5ba0af482fe5bef57f99b1f36b7934d672859aaa (diff)
downloadsite-8f8ee8697131ea149568a02b77f23dc8dedae99a.tar.gz
consolidate time access behind getLastEdit
and drop sourcing times from git for now...

Signed-off-by: Robert Günzler <r@gnzler.io>
Diffstat (limited to '')
-rw-r--r--src/exe.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/exe.zig b/src/exe.zig
index c1f084b..6aa260d 100644
--- a/src/exe.zig
+++ b/src/exe.zig
@@ -75,7 +75,7 @@ fn pandocWorker(ctx: *Context, page: []const u8) !void {
     defer ctx.allocator().free(target_path);
 
     // get mtime of the source document
-    const mtime = try (fs.getGitTime(source_path) catch fs.getMtime(source_path));
+    const mtime = try fs.getLastEdit(source_path);
     const mtime_str = try fs.formatTimespec(ctx.allocator(), mtime, "%s");
     defer ctx.allocator().free(mtime_str);