commit d3beb92c8e873d2d94ad063ca0a97b97baf274f7 Author: Brandon Dyck Date: Tue Oct 8 08:26:14 2024 -0600 First commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..8451a2a --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +.vscode +.zig-cache +zig-out diff --git a/assets/style.css b/assets/style.css new file mode 100644 index 0000000..ce061f7 --- /dev/null +++ b/assets/style.css @@ -0,0 +1,3 @@ +* { + font-family: Palatino, "Palatino Linotype", "Palatino LT STD", "Book Antiqua", Georgia, serif; +} \ No newline at end of file diff --git a/build.zig b/build.zig new file mode 100644 index 0000000..0357b86 --- /dev/null +++ b/build.zig @@ -0,0 +1,13 @@ +const std = @import("std"); +const zine = @import("zine"); + +pub fn build(b: *std.Build) !void { + zine.website(b, .{ + .title = "Some Website", + .host_url = "https://example.com", + .content_dir_path = "content", + .layouts_dir_path = "layouts", + .assets_dir_path = "assets", + .debug = true, + }); +} diff --git a/build.zig.zon b/build.zig.zon new file mode 100644 index 0000000..371a187 --- /dev/null +++ b/build.zig.zon @@ -0,0 +1,11 @@ +.{ + .name = "Some Website", + .version = "0.0.0", + .dependencies = .{ + .zine = .{ + .url = "git+https://github.com/kristoff-it/zine#1d66842aa28f4edfc437b7a5fe7863e1be3e240e", + .hash = "12202ee10bbcfad7006ba10b933b579c47acf23ad8911f4146a937cba048907156ab", + }, + }, + .paths = .{"."}, +} diff --git a/content/index.smd b/content/index.smd new file mode 100644 index 0000000..0a9e789 --- /dev/null +++ b/content/index.smd @@ -0,0 +1,8 @@ +--- +.title = "My website", +.date = @date("2024-10-06T12:14:00-07:00"), +.author = "Brandon", +.layout = "home.shtml", +--- + +Check out my [posts]($link.url('http://localhost:1990/posts/index.html'))! \ No newline at end of file diff --git a/content/posts/first-post.smd b/content/posts/first-post.smd new file mode 100644 index 0000000..686f6f5 --- /dev/null +++ b/content/posts/first-post.smd @@ -0,0 +1,7 @@ +--- +.title = "Nothing in Particular", +.author = "Brandon", +.date = @date("2024-10-07"), +.layout = "post.shtml", +--- +Words on a page. \ No newline at end of file diff --git a/content/posts/index.smd b/content/posts/index.smd new file mode 100644 index 0000000..138346b --- /dev/null +++ b/content/posts/index.smd @@ -0,0 +1,7 @@ +--- +.title = "Posts", +.date = @date("2024-10-06T12:14:00-07:00"), +.author = "Brandon", +.layout = "posts.shtml", +--- +Ain’t nothin’ here. \ No newline at end of file diff --git a/layouts/home.shtml b/layouts/home.shtml new file mode 100644 index 0000000..72f80cf --- /dev/null +++ b/layouts/home.shtml @@ -0,0 +1,11 @@ + + + + + + + +

+
+ + \ No newline at end of file diff --git a/layouts/post.shtml b/layouts/post.shtml new file mode 100644 index 0000000..d40b502 --- /dev/null +++ b/layouts/post.shtml @@ -0,0 +1,12 @@ + + + + + + + + +

+ + + \ No newline at end of file diff --git a/layouts/posts.shtml b/layouts/posts.shtml new file mode 100644 index 0000000..5920232 --- /dev/null +++ b/layouts/posts.shtml @@ -0,0 +1,9 @@ + + + + + + +
+ + \ No newline at end of file