Added news sorting and image support

This commit is contained in:
ngn
2023-12-23 00:22:23 +03:00
parent 6b503d8555
commit 6477240dd4
4 changed files with 34 additions and 6 deletions

View File

@ -9,7 +9,7 @@ func IndexRoute(c *fiber.Ctx) error{
content, err := GetContent("content", "index")
if err != nil {
log.Error(err)
return c.Status(505).SendString("Server error")
return RenderError(c, 500)
}
return c.Render("index", fiber.Map{