Clarify resources.Copy arguments

This commit is contained in:
Joe Mooring 2023-07-02 09:54:05 -07:00 committed by GitHub
parent ee86dd121d
commit 4f8a9ca382
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -121,7 +121,7 @@ Remote resources fetched with `resources.GetRemote` will be cached on disk. See
{{< new-in "0.100.0" >}} {{< 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 ```go-html-template
{{ with resources.Get "img/a.jpg" }} {{ with resources.Get "img/a.jpg" }}