Diffstat (limited to 'internal/router/lang-blog.go')
| -rw-r--r-- | internal/router/lang-blog.go | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/internal/router/lang-blog.go b/internal/router/lang-blog.go index 650c4b1..1a7cbca 100644 --- a/internal/router/lang-blog.go +++ b/internal/router/lang-blog.go @@ -9,15 +9,12 @@ import ( "strings" "github.com/SayaAndy/saya-today-web/internal/b2" + "github.com/SayaAndy/saya-today-web/internal/templatemanager" "github.com/SayaAndy/saya-today-web/locale" "github.com/gofiber/fiber/v2" ) -func init() { - tm.Add("blog-catalogue", "views/layouts/general-page.html", "views/pages/blog-catalogue.html") -} - -func Lang_Blog(l map[string]*locale.LocaleConfig, langs []string, b2Client *b2.B2Client) func(c *fiber.Ctx) error { +func Lang_Blog(tm *templatemanager.TemplateManager, l map[string]*locale.LocaleConfig, langs []string, b2Client *b2.B2Client) func(c *fiber.Ctx) error { return func(c *fiber.Ctx) error { lang := c.Params("lang") if !slices.Contains(langs, lang) { |