mirror of
https://github.com/fmhy/edit.git
synced 2026-02-06 19:21:08 +11:00
🎉 New website!
This commit is contained in:
parent
28f602b9ad
commit
c97a0abf92
68 changed files with 8433 additions and 353 deletions
15
.vitepress/theme/components/Announcement.vue
Normal file
15
.vitepress/theme/components/Announcement.vue
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
<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>
|
||||
Loading…
Add table
Add a link
Reference in a new issue