// Single shows single page func (*SiteController) Single(c echo.Context) error { var site models.Site ret, err := site.Single(c.P(0)) if err != nil { return c.Render(400, "404", err) } return c.Render(200, "index", ret) }
// Home displays home page func (*SiteController) Home(c echo.Context) error { var site models.Site ret, err := site.Home() if err != nil { return c.Render(500, "500", err) } return c.Render(200, "index", ret) }