Add Mastodon comments and remove date-fns dependency
This commit is contained in:
parent
00fa1fb164
commit
3e8bcbcf43
19 changed files with 393 additions and 142 deletions
|
|
@ -20,6 +20,11 @@ const localUrlRegex = /^((\/?\.\.(?=\/))+|(\.(?=\/)))?\/?[a-z0-9_-]+(\/[a-z0-9_-
|
|||
|
||||
const lang = z.enum(["eng", "tok"]).default("eng");
|
||||
const website = z.enum(WEBSITE_LIST);
|
||||
const mastodonPost = z.object({
|
||||
instance: z.string(),
|
||||
user: z.string(),
|
||||
postId: z.string(),
|
||||
});
|
||||
|
||||
export type Lang = z.output<typeof lang>;
|
||||
export type Website = z.infer<typeof website>;
|
||||
|
|
@ -53,6 +58,7 @@ const storiesCollection = defineCollection({
|
|||
next: reference("stories").nullish(),
|
||||
relatedStories: z.array(reference("stories")).default([]),
|
||||
relatedGames: z.array(reference("games")).default([]),
|
||||
mastodonPost: mastodonPost.optional(),
|
||||
}),
|
||||
});
|
||||
|
||||
|
|
@ -78,6 +84,7 @@ const gamesCollection = defineCollection({
|
|||
lang,
|
||||
relatedStories: z.array(reference("stories")).default([]),
|
||||
relatedGames: z.array(reference("games")).default([]),
|
||||
mastodonPost: mastodonPost.optional(),
|
||||
}),
|
||||
});
|
||||
|
||||
|
|
|
|||
|
|
@ -26,6 +26,10 @@ descriptionPlaintext: >
|
|||
An original soundtrack with 9 exclusive songs;
|
||||
A challenging physics-based fishing minigame with scaling difficulty;
|
||||
And a special cutscene...
|
||||
mastodonPost:
|
||||
instance: meow.social
|
||||
user: BadManners
|
||||
postId: "112009918919441027"
|
||||
tags:
|
||||
- oral vore
|
||||
- anthro predator
|
||||
|
|
|
|||
|
|
@ -14,6 +14,10 @@ descriptionPlaintext: >
|
|||
Kolo's day at the airship is nearly over, but a tiny stalker will unwittingly make his evening quite eventful...
|
||||
|
||||
Finally got around to finishing a story ever since I worked on Crossing Over! I wanna get back into writing more stuff again, and this short story has finally broken my writer's block. My goal is to go back to working on commissions, but I feel I'm not quite in the headspace to tackle them just yet... Nevertheless, I hope you enjoy this!
|
||||
mastodonPost:
|
||||
instance: meow.social
|
||||
user: BadManners
|
||||
postId: "112157812554023271"
|
||||
tags:
|
||||
- anthro predator
|
||||
- anthro prey
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue