Adding the wiki route and better styling
This commit is contained in:
@ -1,18 +1,19 @@
|
||||
package routes
|
||||
|
||||
import (
|
||||
"git.matterlinux.xyz/Matterlinux/website/lib"
|
||||
"github.com/gofiber/fiber/v2"
|
||||
"github.com/gofiber/fiber/v2/log"
|
||||
)
|
||||
|
||||
func IndexRoute(c *fiber.Ctx) error{
|
||||
content, err := GetContent("content", "index")
|
||||
con, err := lib.GetContent("", "index")
|
||||
if err != nil {
|
||||
log.Error(err)
|
||||
return RenderError(c, 500)
|
||||
log.Error("GetContent -> ", err)
|
||||
return lib.RenderError(c, 500)
|
||||
}
|
||||
|
||||
return c.Render("index", fiber.Map{
|
||||
"readme": content,
|
||||
"readme": con,
|
||||
})
|
||||
}
|
||||
|
Reference in New Issue
Block a user