Upgrade Instagram shortcode

Fixes #7879
This commit is contained in:
Bjørn Erik Pedersen
2021-06-07 12:45:00 +02:00
parent 12530519d8
commit 9b5debe4b8
7 changed files with 158 additions and 92 deletions

View File

@@ -235,7 +235,7 @@ func generateFileIsZeroWrappers(c *codegen.Inspector) error {
}
pkgImports := append(methods.Imports(), "github.com/gohugoio/hugo/helpers", "github.com/gohugoio/hugo/source")
pkgImports := append(methods.Imports(), "github.com/gohugoio/hugo/common/loggers", "github.com/gohugoio/hugo/source")
fmt.Fprintf(f, `%s
@@ -245,10 +245,10 @@ package page
// ZeroFile represents a zero value of source.File with warnings if invoked.
type zeroFile struct {
log *helpers.DistinctLogger
log loggers.Logger
}
func NewZeroFile(log *helpers.DistinctLogger) source.File {
func NewZeroFile(log loggers.Logger) source.File {
return zeroFile{log: log}
}