about summary refs log tree commit diff
path: root/src/gen.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/gen.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/gen.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gen.zig b/src/gen.zig
index 8db8b3f..aec72ca 100644
--- a/src/gen.zig
+++ b/src/gen.zig
@@ -157,7 +157,7 @@ fn genSite(ctx: *Context) !void {
 
 // build a single html file
 fn build(allocator: std.mem.Allocator, w: *std.Io.Writer, page_name: []const u8, srcpath: []const u8) !void {
-    const mtime = try fs.getMtime(srcpath);
+    const mtime = try fs.getLastEdit(srcpath);
     const mtime_str = try fs.formatTimespec(allocator, mtime, "%F");
     defer allocator.free(mtime_str);