添加友链的i18n,和链接

This commit is contained in:
mckero committed 2025-10-03 12:51:58 +00:00
1 parent 771ee6851a
commit 4a0395d97c
12 files changed
+14 -21

No files matched your search

+4
View File
@@ -22,4 +22,8 @@ export const LinkPresets: { [key in LinkPreset]: NavBarLink } = {
url: '/series/',
},
[LinkPreset.Friends]: {
name: i18n(I18nKey.friends),
url: '/friends/',
},
};
+1
View File
@@ -33,6 +33,7 @@ enum I18nKey {
publishedAt = "publishedAt",
license = "license",
series = 'series',
friends = 'friends',
}
export default I18nKey;
+1
View File
@@ -36,4 +36,5 @@ export const en: Translation = {
[Key.publishedAt]: "Published at",
[Key.license]: "License",
[Key.series]: 'Series',
[Key.friends]: 'Friendly link',
};
+1
View File
@@ -36,4 +36,5 @@ export const es: Translation = {
[Key.publishedAt]: "Publicado el",
[Key.license]: "Licencia",
[Key.series]: 'Serie',
[Key.friends]: 'Enlace amigable',
};
+1
View File
@@ -35,4 +35,5 @@ export const id: Translation = {
[Key.author]: "Penulis",
[Key.publishedAt]: "Diterbitkan pada",
[Key.license]: "Lisensi",
[Key.friends]: 'Teman',
};
+1
View File
@@ -36,4 +36,5 @@ export const ja: Translation = {
[Key.publishedAt]: "公開日",
[Key.license]: "ライセンス",
[Key.series]: 'シリーズ',
[Key.friends]: 'フレンドリンク',
};
+1
View File
@@ -36,4 +36,5 @@ export const ko: Translation = {
[Key.publishedAt]: "게시일",
[Key.license]: "라이선스",
[Key.series]: '시리즈',
[Key.friends]: '친구 링크',
};
+1
View File
@@ -36,4 +36,5 @@ export const th: Translation = {
[Key.publishedAt]: "เผยแพร่เมื่อ",
[Key.license]: "สัญญาอนุญาต",
[Key.series]: 'ชุด',
[Key.friends]: 'เพื่อนร่วมลิงก์'
};
+1
View File
@@ -36,4 +36,5 @@ export const zh_CN: Translation = {
[Key.publishedAt]: "发布于",
[Key.license]: "许可协议",
[Key.series]: '系列',
[Key.friends]: '友链',
};
+1
View File
@@ -36,4 +36,5 @@ export const zh_TW: Translation = {
[Key.publishedAt]: "發佈於",
[Key.license]: "許可協議",
[Key.series]: '系列',
[Key.friends]: '友鏈',
};
-21
View File
@@ -12,27 +12,6 @@ import { Icon } from "astro-icon/components";
<h1 class="text-2xl font-bold text-black dark:text-white">友链</h1>
</div>
<div class="grid grid-cols-1 md:grid-cols-2 gap-4">
<!-- 在这里添加你的友链,参考下面的格式 -->
<!-- 友链示例1 -->
<a href="https://example.com/" target="_blank" class="friend-card">
<div class="flex items-center gap-2">
<img src="https://example.com/avatar.png" loading="lazy" class="w-5 h-5 rounded">
<div class="font-bold text-black dark:text-white">网站名称</div>
</div>
<div class="text-sm text-black/50 dark:text-white/50">网站简介描述</div>
</a>
<!-- 友链示例2 -->
<a href="https://example2.com/" target="_blank" class="friend-card">
<div class="flex items-center gap-2">
<img src="https://example2.com/logo.png" loading="lazy" class="w-5 h-5 rounded">
<div class="font-bold text-black dark:text-white">另一个网站</div>
</div>
<div class="text-sm text-black/50 dark:text-white/50">这里写网站的简介</div>
</a>
<!-- 继续添加更多友链... -->
<a href="https://adclosenn.top" target="_blank" class="friend-card">
<div class="flex items-center gap-2">
<img src="https://adclosenn.top/assets/avatar.jpg" loading="lazy" class="w-5 h-5 rounded">
+1
View File
@@ -49,6 +49,7 @@ export enum LinkPreset {
Archive = 1,
Series = 2,
About = 3,
Friends = 4,
}
export type NavBarLink = {