From 0b91e7676eb6c123e9c169b87e498c1bed65403d Mon Sep 17 00:00:00 2001 From: Joe Mooring Date: Tue, 11 Apr 2023 13:55:31 -0700 Subject: [PATCH] Revert "Delete duplicate content" This reverts commit 3229e79f27da9cda8b3a28dc5f49d5d78c3ef566. We removed the wrong section. --- content/en/hugo-pipes/introduction.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/content/en/hugo-pipes/introduction.md b/content/en/hugo-pipes/introduction.md index 278cb5fab..b213f2e38 100755 --- a/content/en/hugo-pipes/introduction.md +++ b/content/en/hugo-pipes/introduction.md @@ -129,6 +129,18 @@ You can also change the request method and set the request body: Remote resources fetched with `resources.GetRemote` will be cached on disk. See [Configure File Caches](/getting-started/configuration/#configure-file-caches) for details. + +## Copy a Resource + +{{< 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: + +```go-html-template +{{ $resized := $image.Resize "400x400" | resources.Copy "images/mynewname.jpg" }} + +``` + ## Asset directory Asset files must be stored in the asset directory. This is `/assets` by default, but can be configured via the configuration file's `assetDir` key.