mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-29 22:29:56 +02:00
Make the deprecated Page/File methods (from Hugo 0.55) ERROR
Closes #9346
This commit is contained in:
@@ -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.
|
||||
|
Reference in New Issue
Block a user