From f6d1edb5e928b260afc8363b184123e017783285 Mon Sep 17 00:00:00 2001 From: root Date: Sun, 22 Mar 2026 22:36:36 +0100 Subject: Initial commit of the original website --- blog/blog.php | 109 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 109 insertions(+) create mode 100644 blog/blog.php (limited to 'blog/blog.php') diff --git a/blog/blog.php b/blog/blog.php new file mode 100644 index 0000000..f944c2e --- /dev/null +++ b/blog/blog.php @@ -0,0 +1,109 @@ +text($markdown); + } else { + // Fallback to list if slug not found + $postParam = null; + } +} + +// If no valid post requested → show list of all posts +if (!$postParam) { + $files = array_reverse(glob($postsDir . '*.md')); // newest first + $content = ""; + $title = "Blog"; +} +?> + + + + + +<?= htmlspecialchars($title) ?> + + + + + +
+

+
+ +
+
+

© 256phi | 2026 | Home

+
+
+ + + -- cgit v1.2.3