mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-12 20:13:59 +02:00
resource: Revert the normalization of Resource.Name
Which means that .Name now returns the same as it did in 0.122.0. Closes #12142
This commit is contained in:
@@ -55,7 +55,7 @@ var (
|
||||
_ resource.WithResourceMetaProvider = (*resourceAdapter)(nil)
|
||||
_ identity.DependencyManagerProvider = (*resourceAdapter)(nil)
|
||||
_ identity.IdentityGroupProvider = (*resourceAdapter)(nil)
|
||||
_ resource.NameOriginalProvider = (*resourceAdapter)(nil)
|
||||
_ resource.NameNormalizedProvider = (*resourceAdapter)(nil)
|
||||
)
|
||||
|
||||
// These are transformations that need special support in Hugo that may not
|
||||
@@ -282,9 +282,9 @@ func (r *resourceAdapter) Name() string {
|
||||
return r.metaProvider.Name()
|
||||
}
|
||||
|
||||
func (r *resourceAdapter) NameOriginal() string {
|
||||
func (r *resourceAdapter) NameNormalized() string {
|
||||
r.init(false, false)
|
||||
return r.target.(resource.NameOriginalProvider).NameOriginal()
|
||||
return r.target.(resource.NameNormalizedProvider).NameNormalized()
|
||||
}
|
||||
|
||||
func (r *resourceAdapter) Params() maps.Params {
|
||||
|
Reference in New Issue
Block a user