diff options
| author | Tim Keller <tjk@tjkeller.xyz> | 2026-02-28 14:22:09 -0600 |
|---|---|---|
| committer | Tim Keller <tjk@tjkeller.xyz> | 2026-02-28 14:22:09 -0600 |
| commit | 53dcbddbd7e88b4227e021b71a1785dfe2a4ba5e (patch) | |
| tree | 53e848dd6774d22ce165c734a8a0e942c1a5fbba /layouts/shortcodes | |
| parent | c90d8003fe085a358cbe9974f4e021a2a48e9601 (diff) | |
| download | hugo-theme-tjkbasic-53dcbddbd7e88b4227e021b71a1785dfe2a4ba5e.tar.xz hugo-theme-tjkbasic-53dcbddbd7e88b4227e021b71a1785dfe2a4ba5e.zip | |
change image shortcode to look in local page resources instead of global resources
Diffstat (limited to 'layouts/shortcodes')
| -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 "" -}} |
