From 374635747939cbd8cf5a70e9a847b5b90f29e9ed Mon Sep 17 00:00:00 2001 From: Simon C Date: Thu, 10 Jun 2021 14:16:30 +0200 Subject: [PATCH] fix: Les urls des images contenu dans les articles --- layouts/_default/_markup/render-image.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/_default/_markup/render-image.html b/layouts/_default/_markup/render-image.html index 6ce3e10..009bca7 100644 --- a/layouts/_default/_markup/render-image.html +++ b/layouts/_default/_markup/render-image.html @@ -1,5 +1,5 @@ {{/* S'il n'y a pas de / dans l'url d'une image alors on ajoute le path de l'article */}} -{{ $path := cond (in .Destination "/") .Destination (path.Join "/" .Page.File.Dir .Destination) }} +{{ $path := cond (in .Destination "/") .Destination (path.Join "/" .Page.RelPermalink .Destination) }} {{ .Text }}