summaryrefslogtreecommitdiff
path: root/layouts/shortcodes/img-c.html
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/shortcodes/img-c.html')
-rw-r--r--layouts/shortcodes/img-c.html8
1 files changed, 4 insertions, 4 deletions
diff --git a/layouts/shortcodes/img-c.html b/layouts/shortcodes/img-c.html
index a05617f..ff262c7 100644
--- a/layouts/shortcodes/img-c.html
+++ b/layouts/shortcodes/img-c.html
@@ -7,14 +7,14 @@
{{- $img1x := $img.Resize "800x webp q90"}}
{{- $img2x := $img.Resize "1600x webp q90"}}
<figure>
- <a href="{{ $img.RelPermalink }}">
+ <a href="{{ $img.Permalink }}">
<img
class="center {{ $imgclass }}"
alt="{{ $caption }}"
- src="{{ $img1x.RelPermalink }}"
+ src="{{ $img1x.Permalink }}"
srcset="
- {{ $img1x.RelPermalink }} 1x,
- {{ $img2x.RelPermalink }} 2x
+ {{ $img1x.Permalink }} 1x,
+ {{ $img2x.Permalink }} 2x
"
width="{{ $img1x.Width }}"
height="{{ $img1x.Height }}"