From d33dd705626c1c890d06d5d22a1fe8ddc1f5cba3 Mon Sep 17 00:00:00 2001 From: sudoer777 Date: Sat, 19 Aug 2023 15:10:02 -0500 Subject: [PATCH] Open external links in new tab --- astro.config.mjs | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/astro.config.mjs b/astro.config.mjs index addae3d..2761cee 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -24,10 +24,13 @@ export default defineConfig({ syntaxHighlight: 'shiki', shikiConfig: { theme: 'dracula' }, rehypePlugins: [ - rehypeExternalLinks, - { - target: '_blank', - }, + [ + rehypeExternalLinks, + { + target: '_blank', + rel: ['noopener', 'noreferrer'], + }, + ], ], }), icon({