From e97cddfd2adfedf17be3893bd6a601346125ca80 Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Mon, 7 Feb 2022 13:24:00 +0100 Subject: [PATCH] fix: use absolute ULRs in img shortcode (#332) --- layouts/shortcodes/img.html | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/layouts/shortcodes/img.html b/layouts/shortcodes/img.html index fe52388..c2efef4 100644 --- a/layouts/shortcodes/img.html +++ b/layouts/shortcodes/img.html @@ -6,17 +6,17 @@ {{ with $source }} {{ $caption := default .Title $customAlt }} - {{ $tiny := (.Resize "320x").RelPermalink }} - {{ $small := (.Resize "600x").RelPermalink }} - {{ $medium := (.Resize "1200x").RelPermalink }} - {{ $large := (.Resize "1800x").RelPermalink }} + {{ $tiny := (.Resize "320x").Permalink }} + {{ $small := (.Resize "600x").Permalink }} + {{ $medium := (.Resize "1200x").Permalink }} + {{ $large := (.Resize "1800x").Permalink }} {{ $size := dict "tiny" $tiny "small" $small "medium" $medium "large" $large }}
- +