From 0de89e6bc6a467b2cc4261ae65464f40119cc0ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?William=20Herg=C3=A8s?= Date: Fri, 3 Oct 2025 18:40:45 +0200 Subject: feat(frontend): use htmx to dynamically navigate between pages --- backend/home.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'backend/home.go') diff --git a/backend/home.go b/backend/home.go index fd01318..b2a6dfa 100644 --- a/backend/home.go +++ b/backend/home.go @@ -66,7 +66,7 @@ func handleGenericRoot(w http.ResponseWriter, r *http.Request, name string) { if c, ok := rootContent[name]; ok { d.Content = c } else { - cfg := r.Context().Value("config").(*Config) + cfg := r.Context().Value(configKey).(*Config) path := filepath.Join(cfg.RootFolder, name+".md") b, err := os.ReadFile(path) if err != nil { -- cgit v1.2.3