From 656ff3931cf86c50a0b54da43cbf5f68344c58e0 Mon Sep 17 00:00:00 2001 From: r Date: Wed, 25 Dec 2019 16:38:47 +0000 Subject: Update header template and add option for custom css --- config/config.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'config') 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: -- cgit v1.2.3