aboutsummaryrefslogtreecommitdiff
path: root/layouts/shortcodes/img.html
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/shortcodes/img.html')
-rw-r--r--layouts/shortcodes/img.html2
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 "" -}}