diff --git a/conf/inbucket.conf b/conf/inbucket.conf index ff64374..a38e978 100644 --- a/conf/inbucket.conf +++ b/conf/inbucket.conf @@ -32,7 +32,7 @@ ip4.port=9000 theme=integral # Path to the selected themes template files -templates.dir=%(install.dir)s/themes/%(theme)s/templates +template.dir=%(install.dir)s/themes/%(theme)s/templates # Path to the selected themes public (static) files public.dir=%(install.dir)s/themes/%(theme)s/public diff --git a/config.go b/config.go index beee858..4ae451b 100644 --- a/config.go +++ b/config.go @@ -17,10 +17,10 @@ type SmtpConfig struct { } type WebConfig struct { - Ip4address net.IP - Ip4port int - TemplatesDir string - PublicDir string + Ip4address net.IP + Ip4port int + TemplateDir string + PublicDir string } var smtpConfig *SmtpConfig @@ -68,7 +68,7 @@ func LoadConfig(filename string) error { requireOption(messages, "smtp", "domain") requireOption(messages, "web", "ip4.address") requireOption(messages, "web", "ip4.port") - requireOption(messages, "web", "templates.dir") + requireOption(messages, "web", "template.dir") requireOption(messages, "web", "public.dir") requireOption(messages, "datastore", "path") if messages.Len() > 0 { @@ -151,12 +151,12 @@ func parseWebConfig() error { return fmt.Errorf("Failed to parse %v: %v", option, err) } - option = "[web]templates.dir" - str, err = Config.String("web", "templates.dir") + option = "[web]template.dir" + str, err = Config.String("web", "template.dir") if err != nil { return fmt.Errorf("Failed to parse %v: %v", option, err) } - webConfig.TemplatesDir = str + webConfig.TemplateDir = str option = "[web]public.dir" str, err = Config.String("web", "public.dir") diff --git a/themes/integral/public/images/img10.jpg b/themes/integral/public/images/img10.jpg deleted file mode 100644 index 9fe1f17..0000000 Binary files a/themes/integral/public/images/img10.jpg and /dev/null differ diff --git a/themes/integral/templates/header.html b/themes/integral/templates/_base.html similarity index 57% rename from themes/integral/templates/header.html rename to themes/integral/templates/_base.html index a483983..f1d304a 100644 --- a/themes/integral/templates/header.html +++ b/themes/integral/templates/_base.html @@ -4,19 +4,21 @@ Design by Free CSS Templates http://www.freecsstemplates.org Released for free under a Creative Commons Attribution 2.5 License --> +{{define "col1menu"}}{{/* Used inside #content div */}} +