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/logs.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'backend/logs.go') diff --git a/backend/logs.go b/backend/logs.go index 2901559..c663ffb 100644 --- a/backend/logs.go +++ b/backend/logs.go @@ -124,11 +124,12 @@ func handleLogList(w http.ResponseWriter, r *http.Request) { if d == nil { return } + d.title = "logs" d.handleGeneric(w, r, "home_log", d) } func handleLog(w http.ResponseWriter, r *http.Request) { - cfg := r.Context().Value("config").(*Config) + cfg := r.Context().Value(configKey).(*Config) slug := chi.URLParam(r, "slug") path := filepath.Join(cfg.LogFolder, slug) d, ok := logs[path] -- cgit v1.2.3