feat: some updates

This commit is contained in:
Max Richter
2025-05-14 19:23:59 +02:00
parent 5a07a30d15
commit ec62a3e23d
5 changed files with 1514 additions and 1225 deletions

View File

@@ -41,10 +41,6 @@ const list = [...posts, ...photos];
list.sort((a, b) => {
return a.data.date > b.data.date ? -1 : 1;
});
// .sort((a, b) => {
// return a.data.date.getDate() > b.data.date.getDate() ? 1 : -1;
// });
console.log(list.map((post) => [post.data.date, post.data.title]));
const featuredPost = list.find((post) => post.data?.featured);
const otherPosts = list.filter((post) => featuredPost !== post).slice(0, 3);