add page titles

This commit is contained in:
2025-05-20 13:12:50 +03:00
parent 8c7ef09567
commit 7cc16047cb
4 changed files with 31 additions and 1 deletions

View File

@ -22,6 +22,7 @@ app:get("thread_create", "/create", function(self)
return "how did you get here?"
end
self.all_topics = all_topics
self.page_title = "creating thread"
return {render = "threads.create"}
end)
@ -91,6 +92,9 @@ app:get("thread", "/:slug", function(self)
self.topic = Topics:find(thread.topic_id)
self.user = util.get_logged_in_user_or_transient(self)
self.posts = posts
self.page_title = thread.title
return {render = "threads.thread"}
end)