about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/main.zig24
1 files changed, 14 insertions, 10 deletions
diff --git a/src/main.zig b/src/main.zig
index b5a6967..6cf86a5 100644
--- a/src/main.zig
+++ b/src/main.zig
@@ -10,10 +10,12 @@ const PAGE_PATH = "src/inc";
 const SITE_ROOT = ".";
 const SITE_PATH = "site";
 
-const DOMAIN_URL = "https://example.com";
-const SITE_NAME = "example";
-const LICENSE_URL = "https://example.com/license";
-const SOURCE_URL = "https://example.com/source";
+const DOMAIN_URL = "https://gzr.im";
+const SITE_NAME = "gzr.im";
+const LICENSE_HOLDER = "robertgzr";
+const LICENSE_NAME = "BY-NC-SA 4.0";
+const LICENSE_URL = "https://git.sr.ht/~robertgzr/site/blob/rabbits/LICENSE.content";
+const SOURCE_URL = "https://git.sr.ht/~robertgzr/site/tree/rabbits";
 
 const BuildErrors = (std.fs.File.OpenError || std.fs.File.WriteError || std.mem.Allocator.Error);
 
@@ -210,17 +212,19 @@ fn build(allocator: std.mem.Allocator, f: std.fs.File, page_name: []const u8, sr
     try f.writer().print(
         \\<footer>
         \\<span style="">
-        \\Edited on {[MTIME]s} <a href="{[SOURCE]s}/{[PATH]s}">[edit]</a><br/>
-        \\</span>
-        \\<b>robertgzr</b> &copy; &mdash;
-        \\<a href="{[LICENSE]s}" target="_blank">BY-NC-SA 4.0</a>
+        \\Edited on {[MTIME]s} <a href="{[SOURCE_URL]s}/{[PATH]s}">[edit]</a>
+        \\</span><br/>
+        \\<b>{[LICENSE_HOLDER]s}</b> &mdash;
+        \\<a href="{[LICENSE_URL]s}" target="_blank">{[LICENSE_NAME]s}</a>
         \\</footer>
         \\</body></html>
     , .{
         .MTIME = mtime,
         .PATH = srcpath,
-        .LICENSE = LICENSE_URL,
-        .SOURCE = SOURCE_URL,
+        .LICENSE_HOLDER = LICENSE_HOLDER,
+        .LICENSE_NAME = LICENSE_NAME,
+        .LICENSE_URL = LICENSE_URL,
+        .SOURCE_URL = SOURCE_URL,
     });
 }