Author:ptrace
Comitter:ptrace
Date:2026-05-21 05:59:42 UTC
diff --git a/.gitignore b/.gitignore
index 56b5ef1..0547685 100644
--- a/.gitignore
+++ b/.gitignore
@@ -4,6 +4,7 @@
/www
/temp
/dumps
/generic
/posts/*
/fuzzer/fuzz*
diff --git a/src/gen/blog.jai b/src/gen/blog.jai
index dbdde31..63c7fc0 100644
--- a/src/gen/blog.jai
+++ b/src/gen/blog.jai
@@ -27,8 +27,6 @@ Commit :: struct {
};
}
// } Treesitter cringe
Page_Metadata :: struct {
name: string; // navbar name
template: string; // from `templates/`
@@ -295,13 +293,10 @@ generic_open_and_to_entry :: (fn: string) -> Entry {
return as_entry;
}
/** Note(adam): Expanding this proc since it would lose data on its way out.
Ig something something union which I don't understand yet.
*/
generic_page_make :: (
md_fn: string, url: string, fn: string, dont_add_to_navbar: bool
)
-> Page_Metadata #expand
-> *Page_Metadata
{
generic := generic_open_and_to_entry(md_fn);
@@ -312,7 +307,7 @@ generic_page_make :: (
content := commit_make("content", generic.post);
updated := commit_make("updated", updated_date);
page: Page_Metadata;
page := New(Page_Metadata);
page.name = generic.title;
page.template = "generic_page";
page.url = url;
@@ -330,9 +325,9 @@ blank_page_make :: (
template: string,
dont_add_to_navbar: bool
)
-> Page_Metadata #expand
-> *Page_Metadata
{
page: Page_Metadata;
page := New(Page_Metadata);
page.name = title;
page.template = template;
page.url = url;
diff --git a/src/gen/main.jai b/src/gen/main.jai
index f4a4e26..4b39321 100644
--- a/src/gen/main.jai
+++ b/src/gen/main.jai
@@ -70,6 +70,14 @@ re :: #import "uniform";
*/
/** About memory: The current memory footprint is very small.
Like ~0.2 MB RAM leaked, while processing ~0.3 MB of HTML documents.
I do not expect to ever reach high numbers, so we can make use of the OS GC.
*/
/** TODO: The deployment to prod of blog posts and binary changes is quite annoying.
Need a more streamlined approach so we have less friction.
@@ -89,7 +97,6 @@ re :: #import "uniform";
- SSH into server: service.sh restart
We create a new flag for build.jai, that runs the tasks for us.
*/
diff --git a/templates/entries_all.html b/templates/entries_all.html
index affab2b..e49a706 100644
--- a/templates/entries_all.html
+++ b/templates/entries_all.html
@@ -3,7 +3,7 @@
<div class="entry">
<div class="text link">
<h1 class="entry-title fat-link">
<a href="?ts=%5">%1</a> <span class="link-arr">⤴</span>
<a href="?ts=%5">%1</a> <span class="link-arr">[L]</span>
</h1>
<div class="content-text">%2</div>
</div>
diff --git a/templates/entries_limited.html b/templates/entries_limited.html
index 2dafecd..72fc6f7 100644
--- a/templates/entries_limited.html
+++ b/templates/entries_limited.html
@@ -9,7 +9,7 @@
<div class="entry">
<div class="text link">
<h1 class="entry-title fat-link">
<a href="?ts=%5">%1</a> <span class="link-arr">⤴</span>
<a href="?ts=%5">%1</a> <span class="link-arr">[L]</span>
</h1>
<div class="content-text">%2</div>
</div>
diff --git a/templates/index.css b/templates/index.css
index 4a8ba5b..e589c1a 100644
--- a/templates/index.css
+++ b/templates/index.css
@@ -245,8 +245,9 @@ body {
}
.link-arr {
font-size: 0.5em;
position: relative;
top: 2px;
bottom: 0.9em;
}
.text {