all repos — homestead @ 7daa101d37a2c25aaab8c8e7ffe82658669afb4d

Code for my website

tweak configuration schema

Alan Pearce
commit

7daa101d37a2c25aaab8c8e7ffe82658669afb4d

parent

e4e8173ab6124daa84ef012e73c111f111d4a8cf

1 file changed, 2 insertions(+), 3 deletions(-)

changed files
M internal/builder/builder.gointernal/builder/builder.go
@@ -70,9 +70,9 @@ storage := options.Storage
postDir := "post" siteSettings := templates.SiteSettings{ Title: config.Title, - DefaultLanguage: config.DefaultLanguage, + Language: config.Language, Menu: config.Menus["main"], - InjectLiveReload: config.InjectLiveReload, + InjectLiveReload: options.Development, } log.Debug("reading posts", "source", options.Source)
@@ -255,7 +255,6 @@ func BuildSite(options *Options, cfg *config.Config, log *log.Logger) errors.E {
if cfg == nil { return errors.New("config is nil") } - cfg.InjectLiveReload = options.Development return build(options, cfg, log) }