Move ToS to content collection
This commit is contained in:
parent
a97ea99c75
commit
776d1a0bca
11 changed files with 47 additions and 38 deletions
5
src/data/tos_status.ts
Normal file
5
src/data/tos_status.ts
Normal 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;
|
||||
Loading…
Add table
Add a link
Reference in a new issue