aboutsummaryrefslogtreecommitdiffhomepage
path: root/resources/resource_spec.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2024-02-25 10:24:46 +0100
committerBjørn Erik Pedersen <[email protected]>2024-02-25 14:57:29 +0100
commitd310595a2ba672fa30dc9a9a2679542cfc919a35 (patch)
tree14ae73ab6bce20d236759d73e6181f006e4de8f4 /resources/resource_spec.go
parent049dd1d7e0e106d861c60e5417c907bc3a686dcb (diff)
downloadhugo-d310595a2ba672fa30dc9a9a2679542cfc919a35.tar.gz
hugo-d310595a2ba672fa30dc9a9a2679542cfc919a35.zip
resource: Revert the normalization of Resource.Name
Which means that .Name now returns the same as it did in 0.122.0. Closes #12142
Diffstat (limited to 'resources/resource_spec.go')
-rw-r--r--resources/resource_spec.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/resources/resource_spec.go b/resources/resource_spec.go
index 0bb507083..bd04846ed 100644
--- a/resources/resource_spec.go
+++ b/resources/resource_spec.go
@@ -170,8 +170,8 @@ func (r *Spec) NewResource(rd ResourceSourceDescriptor) (resource.Resource, erro
spec: r,
sd: rd,
params: make(map[string]any),
- name: rd.Name,
- title: rd.Name,
+ name: rd.NameOriginal,
+ title: rd.NameOriginal,
}
if rd.MediaType.MainType == "image" {