about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/gen.zig4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gen.zig b/src/gen.zig
index a02503b..114924c 100644
--- a/src/gen.zig
+++ b/src/gen.zig
@@ -19,7 +19,7 @@ pub fn generate(ctx: *Context) !void {
 }
 
 fn genIndexHtml(ctx: *Context) !void {
-    ctx.progress_start("index.html");
+    ctx.progress_start("index.htm");
     defer ctx.progress_end();
 
     const srcpathIndex = try fs.joinPathAndFilename(ctx.allocator(), &.{Context.params.PAGE_PATH}, &.{"index.htm"});
@@ -65,6 +65,8 @@ fn genIndexHtml(ctx: *Context) !void {
         \\</ul>
         \\
     );
+
+    if (!try f.diff()) try f.undo();
 }
 
 fn genSite(ctx: *Context) !void {