aboutsummaryrefslogtreecommitdiff
path: root/backend/home.go
diff options
context:
space:
mode:
authorWilliam Hergès <william@herges.fr>2025-10-03 18:40:45 +0200
committerWilliam Hergès <william@herges.fr>2025-10-03 18:40:45 +0200
commit0de89e6bc6a467b2cc4261ae65464f40119cc0ff (patch)
tree47ca3e894444950152b3ba0cf587f713d5aa7eaa /backend/home.go
parent270f592fc65cd5553ccf7c0dc81431c3efdf67ab (diff)
feat(frontend): use htmx to dynamically navigate between pages
Diffstat (limited to 'backend/home.go')
-rw-r--r--backend/home.go2
1 files changed, 1 insertions, 1 deletions
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 {