aboutsummaryrefslogtreecommitdiff
path: root/controllers/posts.go
diff options
context:
space:
mode:
authorBobby <[email protected]>2025-07-07 15:40:09 +0530
committerBobby <[email protected]>2025-07-07 15:40:09 +0530
commitb6a04140f2668a0dcae4befcd272e05b75bd14e5 (patch)
treebec232ae247690bf030bf05a452192f264df8c92 /controllers/posts.go
parent98afdc4673f616bc61f9ef673580ca3933bdef8a (diff)
downloadimageboard-b6a04140f2668a0dcae4befcd272e05b75bd14e5.tar.xz
imageboard-b6a04140f2668a0dcae4befcd272e05b75bd14e5.zip
fix templates to use proper layout and semantic forms instead of tables
Diffstat (limited to 'controllers/posts.go')
-rw-r--r--controllers/posts.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/controllers/posts.go b/controllers/posts.go
index 6fdcd26..c3da9c1 100644
--- a/controllers/posts.go
+++ b/controllers/posts.go
@@ -8,6 +8,7 @@ import (
func PostsController(ctx *fiber.Ctx) error {
ctx.Locals("Title", "Posts")
+ ctx.Locals("request", fiber.Map{"path": ctx.Path()})
searchQuery := ctx.Query("tags", "")