Move ToS to content collection

This commit is contained in:
Bad Manners 2024-12-05 21:46:09 -03:00
parent a97ea99c75
commit 776d1a0bca
11 changed files with 47 additions and 38 deletions

5
src/data/tos_status.ts Normal file
View file

@ -0,0 +1,5 @@
import { getCollection } from "astro:content";
export const { status: TOS_COMMISSION_STATUS, updatedAt: TOS_UPDATED_AT } = (await getCollection("tos")).sort(
(a, b) => b.data.updatedAt.getTime() - a.data.updatedAt.getTime(),
)[0].data;