2026-03-25 10:06:37 +00:00
|
|
|
---
|
|
|
|
|
import BaseLayout from "@/layouts/BaseLayout.astro";
|
|
|
|
|
import FriendlyLinkList from "@/components/FriendlyLinks/FriendlyLinkList.astro";
|
2026-04-17 16:16:02 +00:00
|
|
|
import FriendsDescription from "@/components/FriendlyLinks/FriendsDescription.astro";
|
2026-03-25 10:06:37 +00:00
|
|
|
import { getLangFromUrl, getTranslations } from "@/i18n";
|
|
|
|
|
import "@/styles/global.css";
|
|
|
|
|
|
|
|
|
|
export function getStaticPaths() {
|
|
|
|
|
return [{ params: { lang: "zh" } }, { params: { lang: "en" } }];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const lang = getLangFromUrl(Astro.url);
|
|
|
|
|
const t = getTranslations(lang);
|
|
|
|
|
const headerTitle = lang === "zh" ? "友情链接" : "Friends";
|
|
|
|
|
---
|
|
|
|
|
|
2026-03-28 20:42:16 +00:00
|
|
|
<BaseLayout pageTitle=`${headerTitle} - ${t.banner.title}`>
|
2026-09-17 08:16:27 +00:00
|
|
|
<div class="page-shell">
|
|
|
|
|
<FriendsDescription />
|
|
|
|
|
<div class="section-divider"></div>
|
|
|
|
|
<FriendlyLinkList />
|
|
|
|
|
</div>
|
2026-03-25 10:06:37 +00:00
|
|
|
</BaseLayout>
|
2026-04-17 16:16:02 +00:00
|
|
|
|
|
|
|
|
<style>
|
|
|
|
|
.section-divider {
|
|
|
|
|
height: 1px;
|
|
|
|
|
background: #cdd2d8;
|
|
|
|
|
margin: 1.5rem 0;
|
|
|
|
|
opacity: 0.8;
|
|
|
|
|
}
|
|
|
|
|
</style>
|