commit
8d0bbed402
4 changed files with 3 additions and 3 deletions
|
|
@ -11,7 +11,7 @@
|
||||||
"check": "astro check"
|
"check": "astro check"
|
||||||
},
|
},
|
||||||
"lint-staged": {
|
"lint-staged": {
|
||||||
"*": [
|
"*.{js,ts,jsx,tsx,json,css,scss,md,astro,html}": [
|
||||||
"prettier --write",
|
"prettier --write",
|
||||||
"astro check"
|
"astro check"
|
||||||
]
|
]
|
||||||
|
|
|
||||||
Binary file not shown.
|
|
@ -1,5 +1,5 @@
|
||||||
---
|
---
|
||||||
title: "my cp setup"
|
title: "my competitive programming setup"
|
||||||
date: "15/04/2025"
|
date: "15/04/2025"
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
@ -8,5 +8,5 @@ export const sortItem = (a, b) => {
|
||||||
const aDate = parseEuroDate(a.data.date).getTime();
|
const aDate = parseEuroDate(a.data.date).getTime();
|
||||||
const bDate = parseEuroDate(b.data.date).getTime();
|
const bDate = parseEuroDate(b.data.date).getTime();
|
||||||
|
|
||||||
return aDate === bDate ? a.slug.localeCompare(b.slug) : bDate - aDate;
|
return aDate === bDate ? b.slug.localeCompare(a.slug) : bDate - aDate;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue