From 4b52f4537a5bb3e28ccdf980e3ad688cede8df5e Mon Sep 17 00:00:00 2001 From: Bryant Gillespie Date: Mon, 18 Sep 2023 16:04:22 -0400 Subject: [PATCH] Open External Header Links in New Tab (#72) * open outgoing links in new tab * fix public url type erorr * Simplify * Remove unused import * No longer needed --------- Co-authored-by: rijkvanzanten --- components/Nav/Header.vue | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/components/Nav/Header.vue b/components/Nav/Header.vue index d0936b81..3740fd94 100644 --- a/components/Nav/Header.vue +++ b/components/Nav/Header.vue @@ -121,6 +121,7 @@ watch( v-if="section.url || (section.page as any)?.permalink" :href="(section.page as any)?.permalink ?? section.url ?? undefined" class="section-title" + :target="!section.page && section.url ? '_blank' : undefined" > {{ section.title }} @@ -143,7 +144,11 @@ watch(
{{ section.children_title }}