diff --git a/src/components/FriendlyLinks/FriendlyLinkList.astro b/src/components/FriendlyLinks/FriendlyLinkList.astro index e386939..09815c9 100644 --- a/src/components/FriendlyLinks/FriendlyLinkList.astro +++ b/src/components/FriendlyLinks/FriendlyLinkList.astro @@ -23,6 +23,8 @@ const links = await getCollection("friends"); diff --git a/src/i18n/en.ts b/src/i18n/en.ts index c0d0b55..97f692a 100644 --- a/src/i18n/en.ts +++ b/src/i18n/en.ts @@ -54,5 +54,15 @@ export default { footer: { githubIntro: 'See more on Github!', repoIntro: 'This blog is fully open source at ClovertaTheTrilobita/SanYeCao-blog' + }, + friends: { + title: "Friends", + content: [ + "Thank you for making it this far.", + "These are my friends, and you're very welcome to exchange links with me too!", + 'You can send your link information to my email.', + "The format is as follows:" + ], + imgDesc: "Our everyday lives may, in fact, be a series of miracles." } }; \ No newline at end of file diff --git a/src/i18n/zh.ts b/src/i18n/zh.ts index f82dcca..09f636f 100644 --- a/src/i18n/zh.ts +++ b/src/i18n/zh.ts @@ -54,5 +54,15 @@ export default { footer: { githubIntro: '在 Github 查看更多!', repoIntro: '这个博客完全开源于 ClovertaTheTrilobita/SanYeCao-blog' + }, + friends: { + title: "友链", + content: [ + "感谢你能看到这里。", + "这里是我的朋友们,也非常欢迎你来一起交换友链!", + '你可以把友链信息发送到我的邮箱。', + "友链的格式如下:" + ], + imgDesc: "——我们日复一日度过的日常,也许就是接连发生的奇迹" } }; \ No newline at end of file diff --git a/src/pages/[lang]/friends.astro b/src/pages/[lang]/friends.astro index 5dbc1e9..48cf461 100644 --- a/src/pages/[lang]/friends.astro +++ b/src/pages/[lang]/friends.astro @@ -1,6 +1,7 @@ --- import BaseLayout from "@/layouts/BaseLayout.astro"; import FriendlyLinkList from "@/components/FriendlyLinks/FriendlyLinkList.astro"; +import FriendsDescription from "@/components/FriendlyLinks/FriendsDescription.astro"; import { getLangFromUrl, getTranslations } from "@/i18n"; import "@/styles/global.css"; @@ -14,5 +15,16 @@ const headerTitle = lang === "zh" ? "友情链接" : "Friends"; --- + +
+ +