summaryrefslogtreecommitdiffstats
path: root/commands/check.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2016-08-08 09:28:02 +0200
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2016-09-06 18:32:18 +0300
commit9798a9567028b364f10027002eb0026767356828 (patch)
treee7b98c69eb3513afeec85ddf1bf17967af191f74 /commands/check.go
parent6b552db75f00cae14377e38327fd168f6398f22d (diff)
Make the check command work in multilingual mode
Or: some more multilingual TODO-fixes. See #2309
Diffstat (limited to 'commands/check.go')
-rw-r--r--commands/check.go8
1 files changed, 5 insertions, 3 deletions
diff --git a/commands/check.go b/commands/check.go
index e8d2e12ed..4537f3f0c 100644
--- a/commands/check.go
+++ b/commands/check.go
@@ -15,7 +15,6 @@ package commands
import (
"github.com/spf13/cobra"
- "github.com/spf13/hugo/hugolib"
)
var checkCmd = &cobra.Command{
@@ -34,7 +33,10 @@ func check(cmd *cobra.Command, args []string) error {
if err := InitializeConfig(checkCmd); err != nil {
return err
}
- site := hugolib.Site{}
- return site.Analyze()
+ if err := initSites(); err != nil {
+ return err
+ }
+
+ return Hugo.Analyze()
}