mirror of
https://github.com/fmhy/edit.git
synced 2025-07-30 07:42:18 +10:00
fix: announcement pill
This commit is contained in:
parent
e337ab380f
commit
6e00de4b4e
3 changed files with 5 additions and 8 deletions
|
@ -47,7 +47,7 @@ const { Layout } = DefaultTheme
|
|||
<template #sidebar-nav-after>
|
||||
<Sidebar />
|
||||
</template>
|
||||
<template #home-hero-prelink>
|
||||
<template #home-hero-info-before>
|
||||
<Announcement />
|
||||
</template>
|
||||
<template #home-features-before>
|
||||
|
|
|
@ -3,11 +3,8 @@ const { frontmatter } = useData()
|
|||
</script>
|
||||
|
||||
<template>
|
||||
<a
|
||||
v-if="frontmatter.hero.prelink"
|
||||
:href="frontmatter.hero.prelink.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.prelink.title }}
|
||||
<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>
|
||||
|
|
|
@ -6,7 +6,7 @@ description: The largest collection of free stuff on the internet!
|
|||
hero:
|
||||
name: freemediaheckyeah
|
||||
tagline: The largest collection of free stuff on the internet!
|
||||
prelink:
|
||||
announcement:
|
||||
title: September Updates 🍂
|
||||
link: /posts/sept-2024
|
||||
image:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue