Commit 871a458
Changed files (4)
src
src/components/Header.astro
@@ -11,7 +11,7 @@ interface Props {
}
const { availableLocales } = Astro.props;
-const locale = Astro.currentLocale!;
+const locale = Astro.currentLocale! as Locale;
const globalI18n = getIntlayer("global", locale);
---
<header class="header">
@@ -21,7 +21,7 @@ const globalI18n = getIntlayer("global", locale);
<ul>
<li><a href={getRelativeLocaleUrl("/posts", locale)}>{globalI18n.posts}</a></li>
<li><a href={getRelativeLocaleUrl("/about", locale)}>{globalI18n.about}</a></li>
- <li><a href={getRelativeLocaleUrl("/feed.atom", locale).slice(0, -1)}>{globalI18n.feed}</a></li>
+ <li><a href={getRelativeLocaleUrl("/links", locale)}>{globalI18n.friendLinks}</a></li>
</ul>
<LocaleSwitcher availableLocales={availableLocales} />
</nav>
src/contents/about/avatar.png
Binary file
src/globalI18n.content.ts
@@ -6,6 +6,7 @@ interface Content {
about: string;
recentPosts: string;
feed: string;
+ source: string;
language: string;
description: string;
}
@@ -29,6 +30,10 @@ export default {
en: "Feed",
"zh-CN": "订阅",
}),
+ source: t({
+ en: "Source",
+ "zh-CN": "源代码",
+ }),
language: t({
en: "Language",
"zh-CN": "语言",