aboutsummaryrefslogtreecommitdiff
path: root/backend/home.go
diff options
context:
space:
mode:
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 {