From 69454848eaa4c8d26f32440e1979ad56cdbe6780 Mon Sep 17 00:00:00 2001 From: Mike Pianka <47948499+mikepianka@users.noreply.github.com> Date: Fri, 16 Apr 2021 09:45:29 -0400 Subject: [PATCH] fix mixture of permanent and relative links --- layouts/shortcodes/img.html | 2 +- package-lock.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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",