summaryrefslogtreecommitdiffstats
path: root/main.go
diff options
context:
space:
mode:
authorNoah Campbell <noahcampbell@gmail.com>2013-08-07 17:21:22 -0700
committerNoah Campbell <noahcampbell@gmail.com>2013-08-09 17:36:32 -0700
commit309db474c72aaa94c178a1f00d58ba8210651f99 (patch)
treeae717e84c74b9a741f68e37a78e8add53a931a73 /main.go
parente26b43f6d9f70470ac7c4a9ec333569585495272 (diff)
Nitro timer is encapsulated.
Remove the need for NewSite by relying on appropriate defaults. Renamed site.c to site.Config to allow Sites to be created outside the package.
Diffstat (limited to 'main.go')
-rw-r--r--main.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/main.go b/main.go
index 8b91bee86..d89b9f10c 100644
--- a/main.go
+++ b/main.go
@@ -102,7 +102,7 @@ func main() {
}
if *checkMode {
- site := hugolib.NewSite(config)
+ site := hugolib.Site{Config: *config}
site.Analyze()
os.Exit(0)
}
@@ -143,7 +143,7 @@ func serve(port string, config *hugolib.Config) {
func buildSite(config *hugolib.Config) (site *hugolib.Site, err error) {
startTime := time.Now()
- site = hugolib.NewSite(config)
+ site = &hugolib.Site{Config: *config}
err = site.Build()
if err != nil {
return