diff options
author | tdro <tdro@noreply.example.com> | 2022-11-17 18:03:13 -0500 |
---|---|---|
committer | tdro <tdro@noreply.example.com> | 2022-11-17 18:03:13 -0500 |
commit | d3e45e2a19fd66f6c807368ee9abc59b975fe4fb (patch) | |
tree | a7fda979c509601d813784de3d85b416a229d17e /themes/default/layouts/_default | |
parent | a0d023cfe24150a1130ff8638ba5ef845da156de (diff) | |
download | canory-d3e45e2a19fd66f6c807368ee9abc59b975fe4fb.tar.gz canory-d3e45e2a19fd66f6c807368ee9abc59b975fe4fb.tar.bz2 canory-d3e45e2a19fd66f6c807368ee9abc59b975fe4fb.zip |
themes/default/layouts/_default/_markup/render-link: data-external -> data-internal
Diffstat (limited to 'themes/default/layouts/_default')
-rw-r--r-- | themes/default/layouts/_default/_markup/render-link.html | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/themes/default/layouts/_default/_markup/render-link.html b/themes/default/layouts/_default/_markup/render-link.html index 0eaa9bd..00a6fd5 100644 --- a/themes/default/layouts/_default/_markup/render-link.html +++ b/themes/default/layouts/_default/_markup/render-link.html @@ -18,12 +18,14 @@ {{- end -}} -<a href="{{ $link | safeURL }}" +<a + {{- if $remote }} + rel="noopener no-referrer" + {{- else }} + data-internal + {{- end }} + href="{{ $link | safeURL }}" {{ with or .Title ($link | safeURL) -}} title="{{ . }}" - {{ end }} - {{- if $remote -}} - data-external - rel="noopener no-referrer" - {{ end }}>{{- .Text | safeHTML -}}</a> + {{ end }}>{{ .Text | safeHTML }}</a> {{- /* This comment removes trailing newlines and white spaces. */ -}} |