From b45cbde8db5b4ccf9786116c7003c35099c06113 Mon Sep 17 00:00:00 2001 From: The Infinity's <137460810+The-Infinitys@users.noreply.github.com> Date: Mon, 12 May 2025 11:42:20 +0900 Subject: [PATCH 1/3] Update article-en.md fixed --- public/article-2025/05/react/article-en.md | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/public/article-2025/05/react/article-en.md b/public/article-2025/05/react/article-en.md index b5ad7aa..2ccea21 100644 --- a/public/article-2025/05/react/article-en.md +++ b/public/article-2025/05/react/article-en.md @@ -1,7 +1,4 @@ -Below is the English translation of the provided Markdown blog post about React.js: - - ---- +-- title: About React.js date: "2025-05-09" description: "A detailed explanation of React.js, from its basics to the latest features and its relationship with Next.js." From 5171cdf3c709bbea5f1072ecbcf60f37850e77e0 Mon Sep 17 00:00:00 2001 From: The Infinity's <137460810+The-Infinitys@users.noreply.github.com> Date: Mon, 12 May 2025 11:44:44 +0900 Subject: [PATCH 2/3] Update article.tsx --- src/app/article/article.tsx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/app/article/article.tsx b/src/app/article/article.tsx index 6ffeac0..d4285b7 100644 --- a/src/app/article/article.tsx +++ b/src/app/article/article.tsx @@ -28,7 +28,7 @@ export function getArticleIndexes() { return true; }); - const articles = years.flatMap((year) => { + const articles = years.reverse().flatMap((year) => { const yearPath = path.join(postsDirectory, year); const months = fs.readdirSync(yearPath).filter((month) => { const monthPath = path.join(yearPath, month); @@ -37,7 +37,7 @@ export function getArticleIndexes() { return false; }); - return months.flatMap((month) => { + return months.reverse().flatMap((month) => { const monthPath = path.join(yearPath, month); const articleIds = fs.readdirSync(monthPath).filter((articleId) => { const articlePath = path.join(monthPath, articleId); @@ -45,7 +45,7 @@ export function getArticleIndexes() { return true; }); - return articleIds + return articleIds.reverse() .map((articleId) => { const articleDir = path.join(monthPath, articleId); const articleFiles = fs @@ -86,7 +86,6 @@ export function getArticleIndexes() { .flat(); // ネストされた配列を平坦化 }); }); - articles.reverse(); return articles; } function findThumbnailFile(directory: string): string | null { From a79047ba652488e2f6c6a88ead276cb579384ec7 Mon Sep 17 00:00:00 2001 From: The Infinity's <137460810+The-Infinitys@users.noreply.github.com> Date: Mon, 12 May 2025 11:47:39 +0900 Subject: [PATCH 3/3] Update article-en.md --- public/article-2025/05/react/article-en.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/article-2025/05/react/article-en.md b/public/article-2025/05/react/article-en.md index 2ccea21..a4afa28 100644 --- a/public/article-2025/05/react/article-en.md +++ b/public/article-2025/05/react/article-en.md @@ -1,4 +1,4 @@ --- +--- title: About React.js date: "2025-05-09" description: "A detailed explanation of React.js, from its basics to the latest features and its relationship with Next.js."