-
-
Notifications
You must be signed in to change notification settings - Fork 7.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add resource.Copy #9313
Comments
I suspect that we have discussed this before; my conclusion then would be that |
Yes I could not find the conversation though. |
But then once you've copied it, are you suppose to "Get" it again from its new location? Or the new asset is returned by the |
Yes, you can start using it right away:
|
Damn! How did I miss that! Thanks! |
What we have now:
To be somewhat consistent, we could just do the same for
There's an undocumented method to publish a resource, having the same effect as invoking
We could also create a
I'm not advocating any of these, but it's worth thinking about. Whatever we do I hope it's mostly consistent between global and page resources, regardless of media type (images, css, js, etc.). |
Yes, I have thought about that, and maybe we should do that, but there's a non-trivial implementation cost to add the same set of options to every
But I'm not totally 100% sure ... There may be other considerations as to why we maybe should add |
Yea, that could maybe be a better idea; this would allow us to put more options in the future if needed. |
Duplicate of #7406 |
Are you sure? I get this when I try your suggestion:
|
Lost in translation... regis asked:
bep answered:
bep didn't mean that the feature is available in the current release. |
I see, on |
No. This is still in the proposal stage. Nothing has been implemented. |
This would help a lot! Any progress? |
Implemented by most Resource objects, but not Page (for now). Fixes gohugoio#9313
Implemented by most Resource objects, but not Page (for now). Fixes gohugoio#9313
Implemented by most Resource objects, but not Page (for now). Fixes gohugoio#9313
Implemented by most Resource objects, but not Page (for now). Fixes #9313
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Currently only some resource methods can take a "destination" argument.
But many don't, including image transformation.
It might also be useful to rename an asset without doing anything to it, especially when using
.GetRemote
:The text was updated successfully, but these errors were encountered: