diff options
Diffstat (limited to 'layouts')
| -rw-r--r-- | layouts/shortcodes/img.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/shortcodes/img.html b/layouts/shortcodes/img.html index a57e1ed..caf9d75 100644 --- a/layouts/shortcodes/img.html +++ b/layouts/shortcodes/img.html @@ -1,6 +1,6 @@ <!-- https://gohugo.io/content-management/image-processing/ --> <!-- Get image --> -{{- $image := resources.GetMatch (.Get "src") -}} +{{- $image := .Page.Resources.Get (.Get "src") -}} <!-- Get parameters --> {{- $alt := .Get "alt" | default "" -}} |
