mirror of
https://github.com/writefreely/writefreely
synced 2024-11-10 11:24:13 +00:00
Merge pull request #822 from writefreely/custom-css-config
Look for custom CSS in static_parent_dir
This commit is contained in:
commit
e932467ac9
1 changed files with 1 additions and 1 deletions
2
app.go
2
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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue