diff --git a/src/pages/links.astro b/src/pages/links.astro index 2688b6a..4e1c2e1 100644 --- a/src/pages/links.astro +++ b/src/pages/links.astro @@ -1,36 +1,136 @@ --- -import { getEntry, render } from "astro:content"; import Layout from "@/layouts/Layout.astro"; import Header from "@/components/Header.astro"; import Breadcrumb from "@/components/Breadcrumb.astro"; import Main from "@/components/Main.astro"; import Footer from "@/components/Footer.astro"; import config from "@/config"; +import { useTranslations } from "@/i18n"; -const links = await getEntry("pages", "links"); +const locale = Astro.currentLocale ?? config.site.lang; +const t = useTranslations(locale); -if (!links) { - throw new Error( - "Missing content entry: `links.md` or `links.mdx` in `src/content/pages/`" - ); +interface FriendLink { + name: string; + url: string; + avatar: string; + desc: string; } -const { Content } = await render(links); +const links: FriendLink[] = [ + { + name: "落雪の自留地", + url: "https://www.lxhtt.cn", + avatar: "https://www.lxhtt.cn/img/avatar.webp", + desc: "活着就是为了改变世界", + }, +]; --- - +
-
- +
+ + +

友情链接申请

+ +

如贵站符合以下条件,并希望交换友情链接,可发送邮件到 im@qihanx.cn。

+ +
    +
  • ✅ 贵站在中国大陆区域能够正常访问;
  • +
  • ✅ 贵站符合中国大陆法律法规;
  • +
  • ✅ 贵站已添加本站友情链接。
  • +
+ +

本站友链信息如下:

+ +
    +
  • 网站名称: 启涵的小破站
  • +
  • 网站地址: https://qihanx.cn
  • +
  • 网站图标: https://qihanx.cn/favicon.png
  • +
  • 网站简介: 最慢的步伐不是跬步,而是徘徊;最快的脚步不是冲刺,而是坚持。
  • +