From 8f8ee8697131ea149568a02b77f23dc8dedae99a Mon Sep 17 00:00:00 2001 From: Robert Günzler Date: Thu, 29 Jan 2026 19:16:23 +0100 Subject: consolidate time access behind getLastEdit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit and drop sourcing times from git for now... Signed-off-by: Robert Günzler --- src/gen.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gen.zig') 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); -- cgit 1.4.1