diff options
| author | Robert Günzler <r@gnzler.io> | 2025-03-07 02:09:40 +0100 |
|---|---|---|
| committer | Robert Günzler <r@gnzler.io> | 2025-03-07 02:09:40 +0100 |
| commit | 5806bd32feedee6595cb7b849a4ba605940cd127 (patch) | |
| tree | 24300f40f9ee2d9db7908faf0211e0a400a39d05 /src | |
| parent | e8412d36795a042a0a449f2931113a329853e17c (diff) | |
| download | site-5806bd32feedee6595cb7b849a4ba605940cd127.tar.gz | |
add public-inbox link to footer
Signed-off-by: Robert Günzler <r@gnzler.io>
Diffstat (limited to '')
| -rw-r--r-- | src/main.zig | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/main.zig b/src/main.zig index 6884097..1dcdba6 100644 --- a/src/main.zig +++ b/src/main.zig @@ -20,6 +20,7 @@ const LICENSE_YEAR = "2025"; const LICENSE_NAME = "BY-NC-SA 4.0"; const LICENSE_URL = "https://git.sr.ht/~robertgzr/site/blob/master/LICENSE.content"; const SOURCE_URL = "https://git.sr.ht/~robertgzr/site/tree/master"; +const PUBLIC_INBOX = "~robertgzr/public-inbox@lists.sr.ht"; // tune std.log options pub const std_options = .{ @@ -241,9 +242,8 @@ fn build(allocator: std.mem.Allocator, f: std.fs.File, page_name: []const u8, sr // FOOTER try f.writer().print( \\<footer> - \\<span style=""> \\Edited on {[MTIME]s} <a href="{[SOURCE_URL]s}/{[PATH]s}" target="_blank">[src]</a> - \\</span> + \\<a href="mailto:{[PUBLIC_INBOX]s}">[comments]</a> \\<br> \\<b>{[LICENSE_HOLDER]s}</b> \\© {[LICENSE_YEAR]s} @@ -252,12 +252,13 @@ fn build(allocator: std.mem.Allocator, f: std.fs.File, page_name: []const u8, sr \\</footer> \\ , .{ - .MTIME = mtime, - .PATH = srcpath, .LICENSE_HOLDER = LICENSE_HOLDER, - .LICENSE_YEAR = LICENSE_YEAR, .LICENSE_NAME = LICENSE_NAME, .LICENSE_URL = LICENSE_URL, + .LICENSE_YEAR = LICENSE_YEAR, + .MTIME = mtime, + .PATH = srcpath, + .PUBLIC_INBOX = PUBLIC_INBOX, .SOURCE_URL = SOURCE_URL, }); |