Make the deprecated Page/File methods (from Hugo 0.55) ERROR

Closes #9346
This commit is contained in:
Bjørn Erik Pedersen
2022-01-04 11:22:57 +01:00
parent dad0dc8d86
commit 56ab83a597
4 changed files with 42 additions and 32 deletions

View File

@@ -37,6 +37,11 @@ type OriginProvider interface {
GetFieldString(pattern string) (string, bool)
}
// ErrProvider provides an Err.
type ErrProvider interface {
Err() error
}
// Resource represents a linkable resource, i.e. a content page, image etc.
type Resource interface {
ResourceTypeProvider
@@ -45,7 +50,7 @@ type Resource interface {
ResourceMetaProvider
ResourceParamsProvider
ResourceDataProvider
Err() error
ErrProvider
}
// Image represents an image resource.