mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-20 21:31:32 +02:00
docs: Regenerate docs helper
This commit is contained in:
@@ -25,7 +25,11 @@ import (
|
||||
|
||||
// New returns a new instance of the fmt-namespaced template functions.
|
||||
func New(d *deps.Deps) *Namespace {
|
||||
ignorableLogger := d.Log.(loggers.IgnorableLogger)
|
||||
ignorableLogger, ok := d.Log.(loggers.IgnorableLogger)
|
||||
if !ok {
|
||||
ignorableLogger = loggers.NewIgnorableLogger(d.Log)
|
||||
}
|
||||
|
||||
distinctLogger := helpers.NewDistinctLogger(d.Log)
|
||||
ns := &Namespace{
|
||||
distinctLogger: ignorableLogger.Apply(distinctLogger),
|
||||
|
Reference in New Issue
Block a user