diff --git a/src/pages/projects.astro b/src/pages/projects.astro index 06d866f..c63be83 100644 --- a/src/pages/projects.astro +++ b/src/pages/projects.astro @@ -10,6 +10,7 @@ interface Project { stats?: { forks: number; stars: number; + updated_at: Date; }; } @@ -64,6 +65,26 @@ const projects: Project[] = [ link: "https://github.com/xHyroM/frog", desc: "Frog is an extremely simple language based on the monkey language.", }, + { + name: "lsx", + link: "https://github.com/xHyroM/lsx", + desc: "Lsx is a simple, fast, and easy to use ls implementation in Rust.", + }, + { + name: "Slovensko v Grafoch", + link: "https://github.com/xHyroM/slovensko-v-grafoch", + desc: "Slovensko v Grafoch is a website that shows data about Slovakia in graphs.", + }, + { + name: "Peddler's Pocket", + link: "https://github.com/xHyroM/peddlerspocket", + desc: "/sell command that allows you to put things into GUI and then sell them by closing", + }, + { + name: "Peak Pursuit", + link: "https://github.com/xHyroM/peakpursuit", + desc: "PeakPursuit is a plugin for King of the Hill events that adds a competitive edge to your server gameplay. Conquer the hill and claim the crown!", + }, ]; for (const project of projects) { @@ -78,8 +99,13 @@ for (const project of projects) { project.stats = { forks: repository.forks, stars: repository.stargazers_count, + updated_at: new Date(repository.updated_at), }; } + +projects.sort( + (a, b) => b.stats!.updated_at.getTime() - a.stats!.updated_at.getTime() +); ---