func Load(dir string) (conf Site, err error) {
	if conf, err = loadSite(dir); err != nil {
		log.Errorf("Failed to load site config, reason: %q\n", err)
		return
	}
	var modified time.Time
	if conf.Sections, modified, err = loadSections(dir); err != nil {
		log.Errorf("Failed to load section configs, reason: %q\n", err)
	}
	if modified.After(conf.modified) {
		conf.modified = modified
	}
	return
}
// Load parses all of the config directories
Load parses all of the config directories
// Load parses all of the config directories
func Load(dir string) (conf Site, err error) {
	if conf, err = loadSite(dir); err != nil {
		log.Errorf("Failed to load site config, reason: %q\n", err)
		return
	}
	var modified time.Time
	if conf.Sections, modified, err = loadSections(dir); err != nil {
		log.Errorf("Failed to load section configs, reason: %q\n", err)
	}
	if modified.After(conf.modified) {
		conf.modified = modified
	}
	return
}
func Load ( dir string ) ( conf Site , err error ) { if conf , err = loadSite ( dir ) ; err != nil { log . Errorf ( " \n " , err ) return } var modified time . Time if conf . Sections , modified , err = loadSections ( dir ) ; err != nil { log . Errorf ( " \n " , err ) } if modified . After ( conf . modified ) { conf . modified = modified } return }
Load parses all of the config directories
Load parses all of the config directories