mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-15 02:17:05 +00:00
Update index.md
Reverting changes from d9f7cfc0 that were superseded by 060076cb.
This commit is contained in:
1 parent
09fea41e0c
commit
8c25cfc5c1
1 file changed
-10
@@ -28,16 +28,6 @@ content/
|
|||||||
└── sunset.jpg <-- page resource
|
└── sunset.jpg <-- page resource
|
||||||
```
|
```
|
||||||
|
|
||||||
## The Image Resource
|
|
||||||
|
|
||||||
The `image` resource gives you access to image-specific attributes like the picture's `Width` and `Height`, as well as powerful processing methods and filters. More on that below.
|
|
||||||
|
|
||||||
Note that the `image` resource can also be retrieved from a [global resource]({{< relref "/hugo-pipes/introduction#from-file-to-resource" >}})
|
|
||||||
|
|
||||||
```go-html-template
|
|
||||||
{{ $image := .Resources.GetMatch "sunset.jpg" }}
|
|
||||||
```
|
|
||||||
|
|
||||||
### Global Resources
|
### Global Resources
|
||||||
|
|
||||||
A global resource is a file:
|
A global resource is a file:
|
||||||
|
|||||||
Reference in new issue
Block a user