wf4/app/components/RichText/Link.vue
webfussel a204be8ddc REMOVE: (Urban) as SEO is okay again
Removed the (Urban) which was added after marriage for better SEO
2025-03-18 12:54:31 +01:00

18 lines
506 B
Vue
Executable file

<template>
<a v-if="isExternal" :href="href" :target="target" class="text inline-flex-row">
{{ content }}
<Icon name="ph:arrow-square-out-duotone" mode="svg" />
</a>
<NuxtLink v-else :to="href" class="text inline-flex-row">
{{ content }}
<Icon name="ph:link-simple-duotone" mode="svg" />
</NuxtLink>
</template>
<script setup lang="ts">
import type { RichTextLink } from './Types'
const { href } = defineProps<RichTextLink>()
const isExternal = href.startsWith('http')
</script>