From 821b58957a5625ac30ce5c5c3a588b8eb19f99a0a0cbb2e71a1ef67d89c9c58c Mon Sep 17 00:00:00 2001 From: Nicholas Johnson Date: Fri, 28 Jun 2024 00:00:00 +0000 Subject: Revert "Don't add rel="noreferrer" to non-web links" This reverts commit f34e453196b85e756b16f5ff668d15c2462948e6778657907ff52821d360309b. Adding rel="noreferrer" to non-http-prefixed links was believed to be a noop, but this overlooks relative links. For privacy reasons, relative links must not send referrer headers. --- layouts/_default/_markup/render-link.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'layouts/_default/_markup') diff --git a/layouts/_default/_markup/render-link.html b/layouts/_default/_markup/render-link.html index 5ffb876..6254ed8 100644 --- a/layouts/_default/_markup/render-link.html +++ b/layouts/_default/_markup/render-link.html @@ -1,2 +1,2 @@ {{ $emoji := cond (and (not (.Page.Params.makerefs | default true)) (.Page.Params.showlinkemoji | default true)) (emojify ":link: ") "" -}} -{{ $emoji }}{{ .Text | safeHTML }} \ No newline at end of file +{{ $emoji }}{{ .Text | safeHTML }} -- cgit v1.2.3