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 }}