FMHYedit/.vitepress/theme/components/Announcement.vue
taskylizard c97a0abf92
🎉 New website!
2023-11-12 22:12:57 +05:30

16 lines
399 B
Vue

<script setup lang="ts">
import { useData } from "vitepress";
const { frontmatter } = useData();
</script>
<template>
<a
v-if="frontmatter.hero.prelink"
:href="frontmatter.hero.prelink.link"
target="_blank"
class="inline-flex items-center rounded-lg bg-[var(--vp-c-default-soft)] px-4 py-1 text-sm font-semibold mb-3">
{{ frontmatter.hero.prelink.title }}
</a>
</template>