diff options
| author | Robert Günzler <r@gnzler.io> | 2025-01-07 11:34:36 +0100 |
|---|---|---|
| committer | Robert Günzler <r@gnzler.io> | 2025-01-07 15:49:51 +0100 |
| commit | c00db66740a9b310e02a41480aabb8f91f867bde (patch) | |
| tree | 03e27940db403c54ff9ea54b515203608a345984 /src/main.zig | |
| parent | 73e4a857c6348297eed06f6f1db44d25461d73a9 (diff) | |
| download | site-c00db66740a9b310e02a41480aabb8f91f867bde.tar.gz | |
render tildes into links/
add symlink for ~thesis for backwards compatability with old site Signed-off-by: Robert Günzler <r@gnzler.io>
Diffstat (limited to 'src/main.zig')
| -rw-r--r-- | src/main.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.zig b/src/main.zig index 10eead9..3e2fa7e 100644 --- a/src/main.zig +++ b/src/main.zig @@ -7,8 +7,8 @@ const c = @cImport({ }); const PAGE_PATH = "src/inc"; -const SITE_ROOT = "."; const SITE_PATH = "site"; +const LINK_PATH = "links"; const SITE_NAME = "gzr.im"; const LICENSE_HOLDER = "robertgzr"; @@ -259,7 +259,7 @@ fn meta(ctx: *Context, p: []const u8) !void { const dstname = p[11..dot.?]; const srcpath = try joinIn(ctx.allocator, &.{PAGE_PATH}, &.{p}); defer ctx.allocator.free(srcpath); - const dstpath = try joinIn(ctx.allocator, &.{SITE_ROOT}, &.{ "~", dstname }); + const dstpath = try joinIn(ctx.allocator, &.{LINK_PATH}, &.{ "~", dstname }); defer ctx.allocator.free(dstpath); const link = blk: { |