mirror of
https://gitea.phreedom.club/localhost_frssoft/bloat.git
synced 2025-05-02 10:04:22 +00:00
Update header template and add option for custom css
This commit is contained in:
parent
bde2c03495
commit
656ff3931c
16 changed files with 90 additions and 47 deletions
|
@ -16,6 +16,7 @@ type config struct {
|
|||
StaticDirectory string
|
||||
TemplatesGlobPattern string
|
||||
DatabasePath string
|
||||
CustomCSS string
|
||||
Logfile string
|
||||
}
|
||||
|
||||
|
@ -41,6 +42,7 @@ func getDefaultConfig() *config {
|
|||
StaticDirectory: "static",
|
||||
TemplatesGlobPattern: "templates/*",
|
||||
DatabasePath: "database.db",
|
||||
CustomCSS: "",
|
||||
Logfile: "",
|
||||
}
|
||||
}
|
||||
|
@ -83,6 +85,8 @@ func Parse(r io.Reader) (c *config, err error) {
|
|||
c.TemplatesGlobPattern = val
|
||||
case "database_path":
|
||||
c.DatabasePath = val
|
||||
case "custom_css":
|
||||
c.CustomCSS = val
|
||||
case "logfile":
|
||||
c.Logfile = val
|
||||
default:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue