From c95f1d233664d40dde90528d054b809b0f4515ea Mon Sep 17 00:00:00 2001
From: Alex Nordstrom <6267244+HyperEpsilon@users.noreply.github.com>
Date: Wed, 10 Jul 2024 00:26:32 +0000
Subject: [PATCH] feat: add alias/metadata to transclude tag (#1229)

---
 quartz/plugins/transformers/links.ts |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/quartz/plugins/transformers/links.ts b/quartz/plugins/transformers/links.ts
index f89d367..2805818 100644
--- a/quartz/plugins/transformers/links.ts
+++ b/quartz/plugins/transformers/links.ts
@@ -93,7 +93,7 @@
                 }
                 node.properties.className = classes
 
-                if (opts.openLinksInNewTab) {
+                if (isExternal && opts.openLinksInNewTab) {
                   node.properties.target = "_blank"
                 }
 

--
Gitblit v1.10.0