diff options
| author | William Hergès <william@herges.fr> | 2025-09-06 22:40:59 +0200 |
|---|---|---|
| committer | William Hergès <william@herges.fr> | 2025-09-06 22:40:59 +0200 |
| commit | 8ae1115ba712209cb6b974e81a3a4c4745e36c94 (patch) | |
| tree | 6bb54c05e1f1bcd3f39793d13867635f20da0c2a /main.go | |
| parent | 6f6f10cedcbc46ef125bd067bc8d084d29c76afe (diff) | |
feat(config): customize font file path, extension and name
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 17 |
1 files changed, 9 insertions, 8 deletions
@@ -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) { |
