mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-29 22:29:56 +02:00
@@ -19,7 +19,7 @@ import (
|
||||
"regexp"
|
||||
|
||||
"github.com/gohugoio/hugo/common/hugo"
|
||||
"github.com/gohugoio/hugo/helpers"
|
||||
"github.com/gohugoio/hugo/common/loggers"
|
||||
"github.com/gohugoio/hugo/transform"
|
||||
)
|
||||
|
||||
@@ -33,7 +33,7 @@ func HugoGenerator(ft transform.FromTo) error {
|
||||
b := ft.From().Bytes()
|
||||
if metaTagsCheck.Match(b) {
|
||||
if _, err := ft.To().Write(b); err != nil {
|
||||
helpers.DistinctWarnLog.Println("Failed to inject Hugo generator tag:", err)
|
||||
loggers.Log().Warnf("Failed to inject Hugo generator tag: %s", err)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
@@ -49,7 +49,7 @@ func HugoGenerator(ft transform.FromTo) error {
|
||||
}
|
||||
|
||||
if _, err := ft.To().Write(newcontent); err != nil {
|
||||
helpers.DistinctWarnLog.Println("Failed to inject Hugo generator tag:", err)
|
||||
loggers.Log().Warnf("Failed to inject Hugo generator tag: %s", err)
|
||||
}
|
||||
|
||||
return nil
|
||||
|
Reference in New Issue
Block a user