From 1ef5f6201dd8262dfd445d5c61f5ac0b454e4d4a Mon Sep 17 00:00:00 2001 From: Thedro Neely Date: Fri, 8 Apr 2022 05:33:06 -0400 Subject: generators/hugo/_markup/render-image: Handle remote links --- .../layouts/_default/_markup/render-image.html | 35 ++++++++++++++++++---- 1 file changed, 29 insertions(+), 6 deletions(-) diff --git a/generators/hugo/themes/tdro/layouts/_default/_markup/render-image.html b/generators/hugo/themes/tdro/layouts/_default/_markup/render-image.html index 9c368c7..70f0f2f 100644 --- a/generators/hugo/themes/tdro/layouts/_default/_markup/render-image.html +++ b/generators/hugo/themes/tdro/layouts/_default/_markup/render-image.html @@ -1,14 +1,37 @@ -{{ $imageFile := print "public" (.Destination | safeURL) }} -{{ $image := imageConfig $imageFile }} +{{ $localPath := print "public/" ($.Destination | safeURL) }} +{{ $remoteImage := resources.GetRemote ($.Destination | safeURL) }} + {{- /* This comment removes trailing newlines. */ -}}
- + {{ $.Text }}
-- cgit v1.2.3