From 8ae1115ba712209cb6b974e81a3a4c4745e36c94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?William=20Herg=C3=A8s?= Date: Sat, 6 Sep 2025 22:40:59 +0200 Subject: feat(config): customize font file path, extension and name --- main.go | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'main.go') diff --git a/main.go b/main.go index f2e7ab5..b0ba740 100644 --- a/main.go +++ b/main.go @@ -5,13 +5,14 @@ import ( "encoding/json" "flag" "fmt" - "github.com/BurntSushi/toml" - "github.com/anhgelus/golatt" "html/template" "log/slog" "net/http" "os" "strings" + + "github.com/BurntSushi/toml" + "github.com/anhgelus/golatt" ) var ( @@ -117,15 +118,15 @@ func main() { "Legal things", "", "Legal information about "+cfg.Person.Name+"'s Now page", - &cfg). - Handle() + &cfg, + ).Handle() g.NewTemplate("tags", "/tags", "Tags", "", "Tags of "+cfg.Person.Name+"'s Now page", - &cfg). - Handle() + &cfg, + ).Handle() for _, cp := range customPages { slog.Info("Creating custom page...", "title", cp.Title, "uri", cp.URI) @@ -134,8 +135,8 @@ func main() { cp.Title, cp.Image, cp.Description, - cp). - Handle() + cp, + ).Handle() } g.NotFoundHandler = func(w http.ResponseWriter, r *http.Request) { -- cgit v1.2.3