From a7148391318af094b9a92b760b98d2c6d382a898 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?William=20Herg=C3=A8s?= Date: Sat, 6 Sep 2025 23:00:19 +0200 Subject: fix(font): crash for custom page --- main.go | 1 + templates/base/base.gohtml | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index b0ba740..7fd7093 100644 --- a/main.go +++ b/main.go @@ -146,6 +146,7 @@ func main() { g.TemplateFuncMap = template.FuncMap{ "getImage": getImage, "getRings": func() []*Ring { return cfg.Rings }, + "getFont": func() string { return cfg.Font }, } host := fmt.Sprintf(":%d", port) diff --git a/templates/base/base.gohtml b/templates/base/base.gohtml index 716b1ca..666e403 100644 --- a/templates/base/base.gohtml +++ b/templates/base/base.gohtml @@ -7,10 +7,11 @@ {{ .Title }}