Merge commit '90ad8045056167004d27857a95542936657b8a16'

This commit is contained in:
Bjørn Erik Pedersen
2022-09-13 20:34:24 +02:00
45 changed files with 366 additions and 156 deletions

View File

@@ -28,7 +28,11 @@ content/
└── sunset.jpg <-- page resource
```
To access an image as a 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" }}