diff --git a/src/components/Header.astro b/src/components/Header.astro index 4baedd4..ab6b5cb 100644 --- a/src/components/Header.astro +++ b/src/components/Header.astro @@ -13,6 +13,7 @@ const nav = [ { href: '/archives/', label: t('nav_posts', curLocale) }, { href: '/gallery/', label: t('nav_gallery', curLocale) }, { href: '/about/', label: t('nav_about', curLocale) }, + { href: '/opensource/', label: t('nav_opensource', curLocale) }, ]; const switchHref = localePath(path, curLocale === 'zh' ? 'en' : 'zh'); const switchLabel = curLocale === 'zh' ? 'EN' : '中'; diff --git a/src/components/PostList.astro b/src/components/PostList.astro index e5a9158..65a2caf 100644 --- a/src/components/PostList.astro +++ b/src/components/PostList.astro @@ -41,7 +41,12 @@ const mmdd = (d: Date) => if (rows.length === 0) return null; return (
-

{TRACK_LABEL[cat]}

+

+ {TRACK_LABEL[cat]} + {cat === 'reading' && ( + {locale === 'en' ? 'Books →' : '书架 →'} + )} +