summaryrefslogtreecommitdiff
path: root/src/utils/date.ts
diff options
context:
space:
mode:
authorDawid Rycerz <dawid@rycerz.xyz>2026-01-13 17:13:43 +0100
committerDawid Rycerz <dawid@rycerz.xyz>2026-01-13 17:20:15 +0100
commit9fe4480c3981c38ae8e24d0495df957039864a5d (patch)
treea5f3e4f8c0732c8cd934c28596c6a4d0ab38a4b4 /src/utils/date.ts
parentc0dcecc43e36eeb6b10f662c1be760736cd0dbac (diff)
Remove micro and migrate to use only posts
Diffstat (limited to 'src/utils/date.ts')
-rw-r--r--src/utils/date.ts5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/utils/date.ts b/src/utils/date.ts
index b8c0376..314a837 100644
--- a/src/utils/date.ts
+++ b/src/utils/date.ts
@@ -15,9 +15,6 @@ export function getFormattedDate(
}).format(date);
}
-export function collectionDateSort(
- a: CollectionEntry<"post" | "micro">,
- b: CollectionEntry<"post" | "micro">,
-) {
+export function collectionDateSort(a: CollectionEntry<"post">, b: CollectionEntry<"post">) {
return b.data.publishDate.getTime() - a.data.publishDate.getTime();
}