There is currently no simple way of doing that (I have mentioned in another thread a workaround using resources.Concat, which I guess would work in this case to), but it’s on the road map (but no-one have implemented it) to add a simple “rename” function.
So I found this old thread looking for a way to rename images, it sounds like resources.Copy introduced in Hugo v0.100.0 might be the rename function that we have access to now @bep?
Fair, thank you for the clarification, I wasn’t sure anyone would see the thread otherwise. Thank you for that caveat about the copy not rename. That’s still useful.
I’ve switched recently to use the .RelPermalink of the original resource (like the “images/white-kitten.jpg” here) to achieve the same goal as you are doing here with the .Key. I had no problems with .Key, but it is not in the docs as far as I know. Because there are other use cases, where I’ve been using .Key and switched to .RelPermalink successfully, I would really like to understand, what the difference between .RelPermalink and .Key actually is.