From 289730e24a9f1620e45390d0043aa76c2cfa05db Mon Sep 17 00:00:00 2001 From: Matt Baer Date: Tue, 7 Nov 2023 09:06:50 -0500 Subject: [PATCH] Look for custom CSS in static_parent_dir Previously, it would only check the current directory instead of using the configured `static_parent_dir`. This fixes that. Closes #792 --- app.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.go b/app.go index 42d9891..5f2d62b 100644 --- a/app.go +++ b/app.go @@ -365,7 +365,7 @@ func pageForReq(app *App, r *http.Request) page.StaticPage { } // Use custom style, if file exists - if _, err := os.Stat(filepath.Join(staticDir, "local", "custom.css")); err == nil { + if _, err := os.Stat(filepath.Join(app.cfg.Server.StaticParentDir, staticDir, "local", "custom.css")); err == nil { p.CustomCSS = true }