diff options
| author | Rosa <rosaontheweb@proton.me> | 2026-05-27 13:24:15 -0400 |
|---|---|---|
| committer | Rosa <rosaontheweb@proton.me> | 2026-05-27 13:24:15 -0400 |
| commit | 16e4f8f2a9ead0f79b5b275dc547b517cc8891e9 (patch) | |
| tree | 79ef9796388c4b8a0f1fec99ba5d4b75f8b475f7 /util/pages.zig | |
| parent | 72983cf263053cd40dafbd5f1cb63d3f0b9f1eb8 (diff) | |
add 404.html, remove legacy code
Diffstat (limited to 'util/pages.zig')
| -rw-r--r-- | util/pages.zig | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/util/pages.zig b/util/pages.zig deleted file mode 100644 index 1881aff..0000000 --- a/util/pages.zig +++ /dev/null @@ -1,27 +0,0 @@ -const std = @import("std"); - -pub const pages = [_]Page{Page{ - .source_path = "index.html", - .template_path = "base.html", - .replacements = &[_]Replacement{ Replacement{ - .placeholder = "{{title}}", - .replacement = .{ .literal = "home" }, - }, Replacement{ - .placeholder = "{{body}}", - .replacement = .{ .file_content = {} }, - } }, -}}; - -const Page = struct { - source_path: []const u8, - template_path: []const u8, - replacements: []const Replacement, -}; - -const Replacement = struct { - placeholder: []const u8, - replacement: union(enum) { - file_content, - literal: []const u8, - }, -}; |
