fix: announcement pill

This commit is contained in:
taskylizard 2024-09-01 15:29:14 +00:00
parent e337ab380f
commit 6e00de4b4e
No known key found for this signature in database
GPG key ID: 1820131ED1A24120
3 changed files with 5 additions and 8 deletions

View file

@ -47,7 +47,7 @@ const { Layout } = DefaultTheme
<template #sidebar-nav-after> <template #sidebar-nav-after>
<Sidebar /> <Sidebar />
</template> </template>
<template #home-hero-prelink> <template #home-hero-info-before>
<Announcement /> <Announcement />
</template> </template>
<template #home-features-before> <template #home-features-before>

View file

@ -3,11 +3,8 @@ const { frontmatter } = useData()
</script> </script>
<template> <template>
<a <a v-if="frontmatter.hero.announcement" :href="frontmatter.hero.announcement.link"
v-if="frontmatter.hero.prelink" class="mb-3 inline-flex items-center rounded-lg bg-[var(--vp-c-default-soft)] px-4 py-1 text-sm font-semibold">
:href="frontmatter.hero.prelink.link" {{ frontmatter.hero.announcement.title }}
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.prelink.title }}
</a> </a>
</template> </template>

View file

@ -6,7 +6,7 @@ description: The largest collection of free stuff on the internet!
hero: hero:
name: freemediaheckyeah name: freemediaheckyeah
tagline: The largest collection of free stuff on the internet! tagline: The largest collection of free stuff on the internet!
prelink: announcement:
title: September Updates 🍂 title: September Updates 🍂
link: /posts/sept-2024 link: /posts/sept-2024
image: image: