mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-12 18:34:50 -04:00
Update introduction.md
This commit is contained in:
parent
3abb5fb5de
commit
23281633a0
@ -60,7 +60,7 @@ With `resources.GetRemote`, the first argument is a remote URL:
|
|||||||
`resources.Copy` allows you to copy almost any Hugo `Resource` (the one exception is the `Page`), possibly most useful for renaming things:
|
`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
|
```go-html-template
|
||||||
{{ $resized := $image.Resize "400x400" | resources.Copy "images/mynewname.jpg" } }}
|
{{ $resized := $image.Resize "400x400" | resources.Copy "images/mynewname.jpg" }}
|
||||||
<img src="{{ $resized.RelPermalink }}">
|
<img src="{{ $resized.RelPermalink }}">
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user