diff --git a/layouts/_default/_markup/render-link.html b/layouts/_default/_markup/render-link.html index 7327822..e2ecb09 100644 --- a/layouts/_default/_markup/render-link.html +++ b/layouts/_default/_markup/render-link.html @@ -7,7 +7,7 @@ {{ $isMailtoLink := strings.HasPrefix .Destination "mailto:" }} {{ $hasSlash := in .Destination "/" }} {{- if $isWebLink -}} - {{ $link := cond (and $isWebLink (and (not $hasSlash) (not $isExternalLink))) (path.Join "/" .Page.Dir .Destination) .Destination }} + {{ $link := cond (and $isWebLink (and (not $hasSlash) (not $isExternalLink))) (path.Join "/" .Page.File.Dir .Destination) .Destination }} {{ .Text | safeHTML }} {{- else -}} {{- $separators := cond $isMailtoLink ":@." ":" -}} @@ -33,4 +33,3 @@ > {{- end -}} -