aboutsummaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorr <r@freesoftwareextremist.com>2019-12-25 16:38:47 +0000
committerr <r@freesoftwareextremist.com>2019-12-25 16:38:47 +0000
commit656ff3931cf86c50a0b54da43cbf5f68344c58e0 (patch)
tree611800a2047eb75b62460f0c8a2ec18b0d9ce61a /config
parentbde2c03495c0e032415e8bec484fcbbcb9f4c644 (diff)
downloadbloat-656ff3931cf86c50a0b54da43cbf5f68344c58e0.tar.gz
bloat-656ff3931cf86c50a0b54da43cbf5f68344c58e0.zip
Update header template and add option for custom css
Diffstat (limited to 'config')
-rw-r--r--config/config.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/config/config.go b/config/config.go
index 844672a..17fceca 100644
--- a/config/config.go
+++ b/config/config.go
@@ -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: