mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-17 21:01:26 +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:
@@ -117,8 +117,8 @@ func fetchResourceForSpec(spec *resources.Spec, c *qt.C, name string, targetPath
|
||||
targetPath := name
|
||||
base := "/a/"
|
||||
r, err := spec.NewResource(resources.ResourceSourceDescriptor{
|
||||
LazyPublish: true,
|
||||
Name: name, TargetPath: targetPath, BasePathRelPermalink: base, BasePathTargetPath: base, OpenReadSeekCloser: open,
|
||||
LazyPublish: true,
|
||||
NameNormalized: name, TargetPath: targetPath, BasePathRelPermalink: base, BasePathTargetPath: base, OpenReadSeekCloser: open,
|
||||
GroupIdentity: identity.Anonymous,
|
||||
})
|
||||
c.Assert(err, qt.IsNil)
|
||||
|
Reference in New Issue
Block a user