"github.com/spf13/hugo/helpers"
"github.com/spf13/hugo/hugofs"
"github.com/spf13/hugo/source"
- jww "github.com/spf13/jwalterweatherman"
"github.com/spf13/viper"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
func init() {
testCommonResetState()
- jww.SetStdoutThreshold(jww.LevelCritical)
}
func testCommonResetState() {
"github.com/stretchr/testify/require"
)
-func init() {
- //There are expected ERROR logging in tests that produces a lot of noise.
- jww.SetStdoutThreshold(jww.LevelCritical)
-}
-
const (
pageSimpleTitle = `---
title: simple template
}
}
- t.AddTemplateFile(tplName, baseTemplatePath, path)
+ if err := t.AddTemplateFile(tplName, baseTemplatePath, path); err != nil {
+ jww.ERROR.Printf("Failed to add template %s: %s", tplName, err)
+ }
}
return nil