Reorganize code and clean up Makefile

This commit is contained in:
2025-08-09 08:47:47 +02:00
parent e200f52f40
commit 890a5c48e4
22 changed files with 331 additions and 179 deletions
+16
View File
@@ -0,0 +1,16 @@
include "pages/page.wl"
let posts = $query("SELECT title, content FROM Posts WHERE id=?", $post_id)
let post = posts[0]
let style =
<style>
</style>
let main =
<main>
<h3>\post.title</h3>
<p>\post.content</p>
</main>
page(post.title, $login_user_id, style, main)