diff --git a/layouts/shortcodes/img.html b/layouts/shortcodes/img.html
index 468b9c1..a6bdaac 100644
--- a/layouts/shortcodes/img.html
+++ b/layouts/shortcodes/img.html
@@ -10,7 +10,7 @@
{{ end -}}
{{ range $widths -}}
- {{ $srcUrl := (printf "%dx" . | $image.Resize).RelPermalink -}}
+ {{ $srcUrl := (printf "%dx" . | $image.Resize).Permalink -}}
{{ if eq $imgSrc "" -}}{{ $imgSrc = $srcUrl -}}{{ end -}}
{{ $imgSrcSet = $imgSrcSet | append (printf "%s %dw" $srcUrl .) -}}
{{ end -}}
diff --git a/package-lock.json b/package-lock.json
index ecbbf27..0a14f94 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -6,7 +6,7 @@
"packages": {
"": {
"name": "@hyas/doks",
- "version": "0.2.2",
+ "version": "0.2.3",
"license": "MIT",
"devDependencies": {
"@babel/cli": "^7.13",