feat: added blank target to all external links

This commit is contained in:
2025-09-30 17:10:08 +02:00
parent 97dcc9c909
commit fdff2c2688
2 changed files with 11 additions and 3 deletions

View File

@@ -0,0 +1,7 @@
<script lang="ts">
export let href;
let target = href.includes('https://') || href.includes('http://') ? '_blank' : '';
</script>
<a {href} {target}><slot /></a>