添加友链的i18n,和链接
This commit is contained in:
1 parent
771ee6851a
commit
4a0395d97c
12 files changed
+14
-21
No files matched your search
@@ -22,4 +22,8 @@ export const LinkPresets: { [key in LinkPreset]: NavBarLink } = {
|
|||||||
url: '/series/',
|
url: '/series/',
|
||||||
|
|
||||||
},
|
},
|
||||||
|
[LinkPreset.Friends]: {
|
||||||
|
name: i18n(I18nKey.friends),
|
||||||
|
url: '/friends/',
|
||||||
|
},
|
||||||
};
|
};
|
||||||
@@ -33,6 +33,7 @@ enum I18nKey {
|
|||||||
publishedAt = "publishedAt",
|
publishedAt = "publishedAt",
|
||||||
license = "license",
|
license = "license",
|
||||||
series = 'series',
|
series = 'series',
|
||||||
|
friends = 'friends',
|
||||||
}
|
}
|
||||||
|
|
||||||
export default I18nKey;
|
export default I18nKey;
|
||||||
@@ -36,4 +36,5 @@ export const en: Translation = {
|
|||||||
[Key.publishedAt]: "Published at",
|
[Key.publishedAt]: "Published at",
|
||||||
[Key.license]: "License",
|
[Key.license]: "License",
|
||||||
[Key.series]: 'Series',
|
[Key.series]: 'Series',
|
||||||
|
[Key.friends]: 'Friendly link',
|
||||||
};
|
};
|
||||||
@@ -36,4 +36,5 @@ export const es: Translation = {
|
|||||||
[Key.publishedAt]: "Publicado el",
|
[Key.publishedAt]: "Publicado el",
|
||||||
[Key.license]: "Licencia",
|
[Key.license]: "Licencia",
|
||||||
[Key.series]: 'Serie',
|
[Key.series]: 'Serie',
|
||||||
|
[Key.friends]: 'Enlace amigable',
|
||||||
};
|
};
|
||||||
@@ -35,4 +35,5 @@ export const id: Translation = {
|
|||||||
[Key.author]: "Penulis",
|
[Key.author]: "Penulis",
|
||||||
[Key.publishedAt]: "Diterbitkan pada",
|
[Key.publishedAt]: "Diterbitkan pada",
|
||||||
[Key.license]: "Lisensi",
|
[Key.license]: "Lisensi",
|
||||||
|
[Key.friends]: 'Teman',
|
||||||
};
|
};
|
||||||
@@ -36,4 +36,5 @@ export const ja: Translation = {
|
|||||||
[Key.publishedAt]: "公開日",
|
[Key.publishedAt]: "公開日",
|
||||||
[Key.license]: "ライセンス",
|
[Key.license]: "ライセンス",
|
||||||
[Key.series]: 'シリーズ',
|
[Key.series]: 'シリーズ',
|
||||||
|
[Key.friends]: 'フレンドリンク',
|
||||||
};
|
};
|
||||||
@@ -36,4 +36,5 @@ export const ko: Translation = {
|
|||||||
[Key.publishedAt]: "게시일",
|
[Key.publishedAt]: "게시일",
|
||||||
[Key.license]: "라이선스",
|
[Key.license]: "라이선스",
|
||||||
[Key.series]: '시리즈',
|
[Key.series]: '시리즈',
|
||||||
|
[Key.friends]: '친구 링크',
|
||||||
};
|
};
|
||||||
@@ -36,4 +36,5 @@ export const th: Translation = {
|
|||||||
[Key.publishedAt]: "เผยแพร่เมื่อ",
|
[Key.publishedAt]: "เผยแพร่เมื่อ",
|
||||||
[Key.license]: "สัญญาอนุญาต",
|
[Key.license]: "สัญญาอนุญาต",
|
||||||
[Key.series]: 'ชุด',
|
[Key.series]: 'ชุด',
|
||||||
|
[Key.friends]: 'เพื่อนร่วมลิงก์'
|
||||||
};
|
};
|
||||||
@@ -36,4 +36,5 @@ export const zh_CN: Translation = {
|
|||||||
[Key.publishedAt]: "发布于",
|
[Key.publishedAt]: "发布于",
|
||||||
[Key.license]: "许可协议",
|
[Key.license]: "许可协议",
|
||||||
[Key.series]: '系列',
|
[Key.series]: '系列',
|
||||||
|
[Key.friends]: '友链',
|
||||||
};
|
};
|
||||||
@@ -36,4 +36,5 @@ export const zh_TW: Translation = {
|
|||||||
[Key.publishedAt]: "發佈於",
|
[Key.publishedAt]: "發佈於",
|
||||||
[Key.license]: "許可協議",
|
[Key.license]: "許可協議",
|
||||||
[Key.series]: '系列',
|
[Key.series]: '系列',
|
||||||
|
[Key.friends]: '友鏈',
|
||||||
};
|
};
|
||||||
@@ -12,27 +12,6 @@ import { Icon } from "astro-icon/components";
|
|||||||
<h1 class="text-2xl font-bold text-black dark:text-white">友链</h1>
|
<h1 class="text-2xl font-bold text-black dark:text-white">友链</h1>
|
||||||
</div>
|
</div>
|
||||||
<div class="grid grid-cols-1 md:grid-cols-2 gap-4">
|
<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">
|
<a href="https://adclosenn.top" target="_blank" class="friend-card">
|
||||||
<div class="flex items-center gap-2">
|
<div class="flex items-center gap-2">
|
||||||
<img src="https://adclosenn.top/assets/avatar.jpg" loading="lazy" class="w-5 h-5 rounded">
|
<img src="https://adclosenn.top/assets/avatar.jpg" loading="lazy" class="w-5 h-5 rounded">
|
||||||
|
|||||||
@@ -49,6 +49,7 @@ export enum LinkPreset {
|
|||||||
Archive = 1,
|
Archive = 1,
|
||||||
Series = 2,
|
Series = 2,
|
||||||
About = 3,
|
About = 3,
|
||||||
|
Friends = 4,
|
||||||
}
|
}
|
||||||
|
|
||||||
export type NavBarLink = {
|
export type NavBarLink = {
|
||||||
|
|||||||
Reference in new issue
Block a user