From 4f8a9ca38275aed3f744cd2b16017c81ddab9b51 Mon Sep 17 00:00:00 2001 From: Joe Mooring Date: Sun, 2 Jul 2023 09:54:05 -0700 Subject: [PATCH] Clarify resources.Copy arguments --- content/en/hugo-pipes/introduction.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/en/hugo-pipes/introduction.md b/content/en/hugo-pipes/introduction.md index 6e4cd76fb..c1c91ef9e 100755 --- a/content/en/hugo-pipes/introduction.md +++ b/content/en/hugo-pipes/introduction.md @@ -121,7 +121,7 @@ Remote resources fetched with `resources.GetRemote` will be cached on disk. See {{< new-in "0.100.0" >}} -`resources.Copy` allows you to copy almost any Hugo `Resource` (the one exception is the `Page`), possibly most useful for renaming things: +Use `resources.Copy` to copy a page resource or a global resource. Commonly used to change a resource's published path, `resources.Copy` takes two arguments: the target path relative to the root of the `publishDir` (with or without a leading `/`), and the resource to copy. ```go-html-template {{ with resources.Get "img/a.jpg" }}