Update header template and add option for custom css

This commit is contained in:
r 2019-12-25 16:38:47 +00:00
parent bde2c03495
commit 656ff3931c
16 changed files with 90 additions and 47 deletions

View file

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