diff options
Diffstat (limited to 'themes/default/layouts/_default/_markup/render-link.html')
-rw-r--r-- | themes/default/layouts/_default/_markup/render-link.html | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/themes/default/layouts/_default/_markup/render-link.html b/themes/default/layouts/_default/_markup/render-link.html index 17a6f2c..8f51a57 100644 --- a/themes/default/layouts/_default/_markup/render-link.html +++ b/themes/default/layouts/_default/_markup/render-link.html @@ -7,15 +7,12 @@ {{- with $url.Fragment }}{{ $fragment = printf "#%s" . }}{{ end -}} {{- with .Page.GetPage $url.Path }}{{ $link = printf "%s%s" .Permalink $fragment }}{{ end }}{{ end -}} {{- end -}} -<a - href="{{ $link | safeURL }}" +<a href="{{ $link | safeURL }}" {{ with or .Title ($link | safeURL) -}} title="{{ . }}" {{ end }} {{- if $isRemote -}} - target="_blank" + data-external rel="noopener no-referrer" - {{ end }}> - {{- .Text | safeHTML -}} -</a> + {{ end }}>{{- .Text | safeHTML -}}</a> {{- /* This comment removes trailing newlines and white spaces. */ -}} |