aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Keller <tjk@tjkeller.xyz>2026-02-28 14:22:09 -0600
committerTim Keller <tjk@tjkeller.xyz>2026-02-28 14:22:09 -0600
commit53dcbddbd7e88b4227e021b71a1785dfe2a4ba5e (patch)
tree53e848dd6774d22ce165c734a8a0e942c1a5fbba
parentc90d8003fe085a358cbe9974f4e021a2a48e9601 (diff)
downloadhugo-theme-tjkbasic-53dcbddbd7e88b4227e021b71a1785dfe2a4ba5e.tar.xz
hugo-theme-tjkbasic-53dcbddbd7e88b4227e021b71a1785dfe2a4ba5e.zip
change image shortcode to look in local page resources instead of global resources
-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 "" -}}