aboutsummaryrefslogtreecommitdiffhomepage
path: root/hugolib
diff options
context:
space:
mode:
authorspf13 <[email protected]>2013-10-03 09:44:45 -0400
committerspf13 <[email protected]>2013-10-03 09:44:45 -0400
commitdcfcbac58997f3a329fed636d8fbc5aede42ffcf (patch)
tree36003089410a87df46aded6810f7cd65bdf4d561 /hugolib
parent18f2b82658b6f0ea82c867c2c4d40cf0772841d2 (diff)
downloadhugo-dcfcbac58997f3a329fed636d8fbc5aede42ffcf.tar.gz
hugo-dcfcbac58997f3a329fed636d8fbc5aede42ffcf.zip
Enabling Nitro ('--stepAnalysis') again. Fix #58
Diffstat (limited to 'hugolib')
-rw-r--r--hugolib/site.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/hugolib/site.go b/hugolib/site.go
index 3511b6a13..25ee4d3dc 100644
--- a/hugolib/site.go
+++ b/hugolib/site.go
@@ -31,7 +31,7 @@ import (
"time"
)
-var DefaultTimer = nitro.Initalize()
+var DefaultTimer *nitro.B
func MakePermalink(base *url.URL, path *url.URL) *url.URL {
return base.ResolveReference(path)
@@ -78,6 +78,10 @@ type SiteInfo struct {
Config *Config
}
+func init() {
+ DefaultTimer = nitro.Initalize()
+}
+
func (s *Site) timerStep(step string) {
if s.timer == nil {
s.timer = DefaultTimer