Skip to content

Commit

Permalink
Fix: resume opening in a new tab
Browse files Browse the repository at this point in the history
  • Loading branch information
HugoLnx committed Mar 20, 2024
1 parent 556d11d commit 9b38c70
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/data/site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ pages:
- id: resume
subtitle: Resume
path: &resumeUrl 'https://docs.google.com/document/d/1td3nobiQGHL1K4ZMKC1l2xtNmiY6XOO5Zgw2LnlF0gY/edit'
external: true
isExternal: true
- id: about-me
subtitle: About Me
description: "Read a little bit about me and my journey."
Expand All @@ -33,4 +33,4 @@ seeNext:
- action: Read my Resume
description: Read more about my professional history
url: *resumeUrl
external: true
isExternal: true
2 changes: 1 addition & 1 deletion src/pages/_layout/MainNavbar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
v-for="link in navLinks"
:key="link.id"
:href="link.url"
:target="link.external && '_blank'"
:target="link.isExternal ? '_blank' : '_self'"
class="navbar-item"
>
{{ link.title }}
Expand Down
1 change: 1 addition & 0 deletions src/pages/index/+Page.vue
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@
</p>
<a
:href="item.url"
:target="item.isExternal ? '_blank' : '_self'"
class="see-next-button button is-link is-rounded is-outlined"
>
{{ item.action }}
Expand Down

0 comments on commit 9b38c70

Please sign in to comment.