diff --git a/layouts/_default/_markup/render-link.html b/layouts/_default/_markup/render-link.html index 1cef3ae..23b7b7a 100644 --- a/layouts/_default/_markup/render-link.html +++ b/layouts/_default/_markup/render-link.html @@ -13,6 +13,7 @@ {{- end -}} {{- end -}} {{- if and (strings.HasPrefix .Destination "http") (not (strings.HasPrefix $desturl.Host $baseurl.Host)) }} target="_blank" rel="external noreferrer noopener"{{ end -}} - >{{ .Text | safeHTML }} + >{{ .Text | safeHTML }}{{ if strings.HasPrefix .Destination "http" }}external link{{ end }} + {{- /* Strip trailing space. Code by djibe, thanks to jmooring & killbus */ -}} \ No newline at end of file