diff --git a/_layouts/default.html b/_layouts/default.html index a533fac..eb45082 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -7,6 +7,7 @@ + diff --git a/assets/js/script.js b/assets/js/script.js index 61cd8fa..c3600aa 100644 --- a/assets/js/script.js +++ b/assets/js/script.js @@ -28,4 +28,9 @@ document.addEventListener('{%- if site.turbolinks.enabled -%}turbolinks:load{%- if (Navigator.canShare(data)) Navigator.share(data).then(); }); }); + + document.querySelectorAll("a[href^='http://'],a[href^='https://'],a[href^='//']").forEach(a => { + a.rel = "noopener"; + a.target = "_blank"; + }); });