Kaynağa Gözat

Merge pull request #822 from writefreely/custom-css-config

Look for custom CSS in static_parent_dir
pull/833/head
Matt Baer 5 ay önce
committed by GitHub
ebeveyn
işleme
e932467ac9
Veri tabanında bu imza için bilinen anahtar bulunamadı GPG Anahtar Kimliği: 4AEE18F83AFDEB23
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. +1
    -1
      app.go

+ 1
- 1
app.go Dosyayı Görüntüle

@@ -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
}



Yükleniyor…
İptal
Kaydet