Skip to content

Commit

Permalink
chore: 🤖 Project that has link to outside
Browse files Browse the repository at this point in the history
  • Loading branch information
renoirb committed Sep 29, 2024
1 parent 74563b2 commit 0eaa177
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions pages/projects/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,18 @@
class="no-underline"
v-html="abbreviatize(content.title)"
/>
<a
<span
v-else-if="/^http/.test(content.callToAction.href)"
:href="content.callToAction.href"
:lang="content.locale ? content.locale : 'en-CA'"
class="no-underline"
v-html="abbreviatize(content.title)"
/>
>
{{ abbreviatize(content.title) }}
(&nbsp;<a
:href="content.callToAction.href"
class="no-underline"
target="_blank"
v-html="'🔗'"
/>&nbsp;)
</span>
<span
v-else
:lang="content.locale ? content.locale : 'en-CA'"
Expand Down

0 comments on commit 0eaa177

Please sign in to comment.