- {[...byYear.entries()].map(([year, list]) => (
-
- {year}
- {(Object.keys(POST_TRACKS) as PostCategory[]).map((cat) => {
- const rows = list.filter((post) => post.data.category === cat);
- if (rows.length === 0) return null;
- return (
-
+ );
+ })}
+
+ ))}
+ {moreHref && (
+
+ {t('home_more_posts', locale)}
+
+ )}
+
+)}
diff --git a/src/components/pages/BooksPage.astro b/src/components/pages/BooksPage.astro
index 1ecd121..f8348b4 100644
--- a/src/components/pages/BooksPage.astro
+++ b/src/components/pages/BooksPage.astro
@@ -28,9 +28,12 @@ const L = {