diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2017-01-03 17:28:51 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2017-01-07 17:06:35 +0100 |
commit | 45e3ed517a17648d54e8ce33618a8f251cfec603 (patch) | |
tree | 160a1bbd03a107be08ae76018fb382268365e2a1 /create/content.go | |
parent | 24a286791f37cbf6638b37f29386949045d0bba2 (diff) |
all: Refactor to non-global logger
Note that this looks like overkill for just the logger, and that is correct,
but this will make sense once we start with the template handling etc.
Updates #2701
Diffstat (limited to 'create/content.go')
-rw-r--r-- | create/content.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/create/content.go b/create/content.go index d939cb6bf..195080d88 100644 --- a/create/content.go +++ b/create/content.go @@ -62,7 +62,9 @@ func NewContent(fs afero.Fs, kind, name string) (err error) { return err } - page, err := hugolib.NewPage(name) + site := hugolib.NewSiteDefaultLang() + + page, err := site.NewPage(name) if err != nil { return err } |