about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/inc/index.htm1
-rw-r--r--src/main.zig6
2 files changed, 3 insertions, 4 deletions
diff --git a/src/inc/index.htm b/src/inc/index.htm
index 5b929ad..fdd90d9 100644
--- a/src/inc/index.htm
+++ b/src/inc/index.htm
@@ -1,4 +1,3 @@
-<!-- Generated file, do not edit -->
 <ul class="col2 captial">
 <li><a href="/site/2025.html">2025</a></li>
 <li><a href="/site/404.html">404</a></li>
diff --git a/src/main.zig b/src/main.zig
index 9e74016..64b76d9 100644
--- a/src/main.zig
+++ b/src/main.zig
@@ -192,6 +192,7 @@ fn build(allocator: std.mem.Allocator, f: std.fs.File, page_name: []const u8, sr
 
     // HEAD
     try f.writer().print(
+        \\<!-- Generated file, do not edit, you may edit and discard {[SOURCE]s} :) -->
         \\<!DOCTYPE html>
         \\<html lang="en">
         \\<head>
@@ -207,9 +208,9 @@ fn build(allocator: std.mem.Allocator, f: std.fs.File, page_name: []const u8, sr
         \\<body>
         \\<header>
         \\<a href="/"><img src="/media/interface/logo.svg" alt="{[SITE_NAME]s}"></a>
-        \\</header>
         \\
     , .{
+        .SOURCE = srcpath,
         .LICENSE_URL = LICENSE_URL,
         .PAGE_NAME = page_name,
         .SITE_NAME = SITE_NAME,
@@ -223,13 +224,13 @@ fn build(allocator: std.mem.Allocator, f: std.fs.File, page_name: []const u8, sr
     portal(allocator, f.writer().any(), "meta.nav", false) catch {}; // ignore error
     try f.writer().writeAll(
         \\</nav>
+        \\</header>
         \\
     );
 
     // MAIN
     try f.writer().print(
         \\<main>
-        \\<!-- Generated file, do not edit -->
         \\
     , .{});
     try inject(allocator, f.writer().any(), srcpath);
@@ -371,7 +372,6 @@ fn genIndexHtml(ctx: *Context) !void {
     defer f.close();
 
     try f.writeAll(
-        \\<!-- Generated file, do not edit -->
         \\<ul class="col2 captial">
         \\
     );