mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-14 18:18:37 +00:00
Remove duplicate content
This commit is contained in:
1 parent
0b91e7676e
commit
969c24c168
1 file changed
-13
@@ -59,18 +59,6 @@ ContentLength
|
|||||||
ContentType
|
ContentType
|
||||||
: The content type, e.g. "text/html"
|
: The content type, e.g. "text/html"
|
||||||
|
|
||||||
|
|
||||||
## 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" }}
|
|
||||||
<img src="{{ $resized.RelPermalink }}">
|
|
||||||
```
|
|
||||||
|
|
||||||
### Caching
|
### Caching
|
||||||
|
|
||||||
By default, Hugo calculates a cache key based on the `URL` and the `options` (e.g. headers) given.
|
By default, Hugo calculates a cache key based on the `URL` and the `options` (e.g. headers) given.
|
||||||
@@ -129,7 +117,6 @@ 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.
|
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
|
## Copy a Resource
|
||||||
|
|
||||||
{{< new-in "0.100.0" >}}
|
{{< new-in "0.100.0" >}}
|
||||||
|
|||||||
Reference in new issue
Block a user