mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-14 20:17:17 +00:00
Update introduction.md
This commit is contained in:
1 parent
3abb5fb5de
commit
23281633a0
1 file changed
+1
-1
@@ -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 }}">
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user