feat: implement internationalization (i18n) support

This commit is contained in:
radishzzz 2025-01-18 00:01:25 +00:00
parent 32ffec8480
commit d6c98880d3
17 changed files with 247 additions and 18 deletions

View file

@ -10,7 +10,6 @@ const pinnedPosts = await getPinnedPosts()
<main>
{pinnedPosts.length > 0 && (
<section>
<h2>置顶文章</h2>
<ul>
{pinnedPosts.map(post => (
<li>
@ -25,7 +24,6 @@ const pinnedPosts = await getPinnedPosts()
)}
<section>
<h2>所有文章</h2>
<ul>
{posts.map(post => (
<li>