mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-23 21:53:09 +02:00
Make sure that unreferenced but changed bundle resources gets republished
Fixes #13748
This commit is contained in:
@@ -61,6 +61,7 @@ var (
|
||||
_ identity.DependencyManagerProvider = (*resourceAdapter)(nil)
|
||||
_ identity.IdentityGroupProvider = (*resourceAdapter)(nil)
|
||||
_ resource.NameNormalizedProvider = (*resourceAdapter)(nil)
|
||||
_ isPublishedProvider = (*resourceAdapter)(nil)
|
||||
)
|
||||
|
||||
// These are transformations that need special support in Hugo that may not
|
||||
@@ -325,6 +326,11 @@ func (r *resourceAdapter) Publish() error {
|
||||
return r.target.Publish()
|
||||
}
|
||||
|
||||
func (r *resourceAdapter) isPublished() bool {
|
||||
r.init(false, false)
|
||||
return r.target.isPublished()
|
||||
}
|
||||
|
||||
func (r *resourceAdapter) ReadSeekCloser() (hugio.ReadSeekCloser, error) {
|
||||
r.init(false, false)
|
||||
return r.target.ReadSeekCloser()
|
||||
|
Reference in New Issue
Block a user