mirror of
https://github.com/fmhy/edit.git
synced 2025-07-30 07:42:18 +10:00
13 lines
358 B
Vue
13 lines
358 B
Vue
<script setup lang="ts">
|
|
const { frontmatter } = useData()
|
|
</script>
|
|
|
|
<template>
|
|
<a
|
|
v-if="frontmatter.hero.announcement"
|
|
:href="frontmatter.hero.announcement.link"
|
|
class="mb-3 inline-flex items-center rounded-lg bg-[var(--vp-c-default-soft)] px-4 py-1 text-sm font-semibold"
|
|
>
|
|
{{ frontmatter.hero.announcement.title }}
|
|
</a>
|
|
</template>
|