Footer with souce code link & generation time

This commit is contained in:
William Bouzourène 2025-01-04 17:27:14 +01:00
parent 0aa5b42671
commit 8657bd26bd
Signed by: bouzoure
SSH key fingerprint: SHA256:19MbXpLua4rUtk8tunMesD8KUKb91LXLHg8E/qTooww
5 changed files with 61 additions and 7 deletions

View file

@ -10,6 +10,7 @@ import (
"git.readonly.ch/bouzoure/popvaud-people/controllers"
"git.readonly.ch/bouzoure/popvaud-people/helpers"
"git.readonly.ch/bouzoure/popvaud-people/middlewares"
"github.com/flosch/pongo2/v6"
"github.com/gofiber/fiber/v2"
"github.com/gofiber/fiber/v2/middleware/filesystem"
loggerMiddleware "github.com/gofiber/fiber/v2/middleware/logger"
@ -67,6 +68,8 @@ func main() {
)
}
pongo2.RegisterFilter("time_diff", helpers.TemplTimeDiff)
app := fiber.New(fiber.Config{
Views: engine,
})