aboutsummaryrefslogtreecommitdiffhomepage
path: root/hugolib
diff options
context:
space:
mode:
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