diff --git a/src/components/shared/header-link.vue b/src/components/shared/header-link.vue index 943af84..8fdfa42 100644 --- a/src/components/shared/header-link.vue +++ b/src/components/shared/header-link.vue @@ -26,9 +26,11 @@ li.header-entry a( v-else-if='!sameSite' :href='entry.path' + :target='entry.target || "_self"' ) {{ entry.displayName }} router-link( v-else :to='{ name }' + :target='entry.target || "_self"' ) {{ entry.displayName }} diff --git a/src/content-env.d.ts b/src/content-env.d.ts index 0aa0485..6349739 100644 --- a/src/content-env.d.ts +++ b/src/content-env.d.ts @@ -100,6 +100,12 @@ declare module 'content/routes.js' { displayName: string } & ({ path: string + target?: + | '_self' + | '_blank' + | '_parent' + | '_top' + | '_unfencedTop' } | { children: HeaderEntry[] })