@for (.blogs) |blog| {
+ @if ($.allowed)
+
+ Delete post
+
+
+ @end
{{blog.title}}
{{zmpl.fmt.datetime(blog.get("created_at"), "%Y-%m-%d %H:%M")}}
diff --git a/src/app/views/blogs/new.zmpl b/src/app/views/blogs/new.zmpl
index 62adba1..4a85475 100644
--- a/src/app/views/blogs/new.zmpl
+++ b/src/app/views/blogs/new.zmpl
@@ -1,11 +1,12 @@
diff --git a/src/app/views/root.zig b/src/app/views/root.zig
index 200ac33..81919b3 100644
--- a/src/app/views/root.zig
+++ b/src/app/views/root.zig
@@ -61,6 +61,10 @@ pub fn index(request: *jetzig.Request, data: *jetzig.Data) !jetzig.View {
try root.put("allowed", allowed);
+ try root.put("bsky_link", "empty for now");
+ try root.put("discord_link", "https://discord.gg/pvraBkepUP");
+ try root.put("codeberg_link", "https://codeberg.org/yuzu");
+
try root.put("message_param", params.get("message"));
// Set arbitrary response headers as required. `content-type` is automatically assigned for
diff --git a/src/app/views/root/_article_blob.zmpl b/src/app/views/root/_article_blob.zmpl
index 1bfc872..3fd038d 100644
--- a/src/app/views/root/_article_blob.zmpl
+++ b/src/app/views/root/_article_blob.zmpl
@@ -1,4 +1,8 @@
-@args title: []const u8
+@args title: []const u8, id: i32, blob: []const u8
diff --git a/src/app/views/root/index.zmpl b/src/app/views/root/index.zmpl
index 370cc3a..355b321 100644
--- a/src/app/views/root/index.zmpl
+++ b/src/app/views/root/index.zmpl
@@ -9,10 +9,10 @@
{{.title}}
-
+
+
Hello, I like doing things.
-
I created this website using Jetzig in order to store things I do.
+
+
+
+
+
I created this website in order to store things I do, but don't be scared of the simple layout, this website is featureful and full of things to do, please enjoy your visit.
@for (.articles) |article| {
- @partial root/article_blob(title: article.title, blob: article.content)
+ @partial root/article_blob(title: article.title, blob: article.content, id: article.id)
}
-
+
+
+
+
+ This website is not reliant on JavaScript, and all scripts are optional and publicly available.
+
+
+
+
+
+
© 2025 yuzucchii.xyz
+
+
+