about summary refs log tree commit diff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--index.html1
-rw-r--r--src/main.zig4
2 files changed, 4 insertions, 1 deletions
diff --git a/index.html b/index.html
index 533fabd..ba1a3cf 100644
--- a/index.html
+++ b/index.html
@@ -12,6 +12,7 @@
   <link rel="stylesheet" type="text/css" href="links/hero.css">
   <link rel="shortcut icon" type="image/png" href="media/services/icon.png">
   <link rel="author" href="humans.txt">
+  <link rel="license" href="https://git.sr.ht/~robertgzr/site/blob/master/LICENSE.content">
   <title>gzr.im</title>
 </head>
 
diff --git a/src/main.zig b/src/main.zig
index c97634a..346dd02 100644
--- a/src/main.zig
+++ b/src/main.zig
@@ -183,6 +183,7 @@ fn build(allocator: std.mem.Allocator, f: std.fs.File, page_name: []const u8, sr
         \\<link rel="alternate" type="application/rss+xml" title="RSS Feed" href="/links/rss.xml">
         \\<link rel="stylesheet" type="text/css" href="/links/main.css">
         \\<link rel="shortcut icon" type="image/png" href="/media/services/icon.png">
+        \\<link rel="license" href="{[LICENSE_URL]s}">
         \\<title>{[SITE_NAME]s} &mdash; {[PAGE_NAME]s}</title>
         \\</head>
         \\<body>
@@ -191,8 +192,9 @@ fn build(allocator: std.mem.Allocator, f: std.fs.File, page_name: []const u8, sr
         \\</header>
         \\
     , .{
-        .SITE_NAME = SITE_NAME,
+        .LICENSE_URL = LICENSE_URL,
         .PAGE_NAME = page_name,
+        .SITE_NAME = SITE_NAME,
     });
 
     // NAV