From 853d253a7dc0c7de6438310cd94a7ece2da9397c Mon Sep 17 00:00:00 2001 From: ilotterytea Date: Fri, 12 Dec 2025 10:34:56 +0500 Subject: feat: store posts in text format --- blog/index.php | 62 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 blog/index.php (limited to 'blog/index.php') diff --git a/blog/index.php b/blog/index.php new file mode 100644 index 0000000..773cc6f --- /dev/null +++ b/blog/index.php @@ -0,0 +1,62 @@ + 1) { + $post_id = explode("/", substr($url['path'], 1), 2); + $post_id = $post_id[count($post_id) - 1]; +} + +if ($post_id) { + $post = read_post(urldecode($post_id)); + if (!$post) { + http_response_code(404); + exit("Post not found"); + } +} else { + $posts = get_posts(); +} +?> + + + + + blog - ilt.su + + + + + + + + +
+

ilt.su - blog

+ +

No title.' ?>

+
+ No contents.' ?> +
+

Posted ago

+ + + +

Blog

+ + +
+ + + \ No newline at end of file -- cgit v1.2.3