This commit is contained in:
parent
697c201458
commit
a46df994d5
6 changed files with 3 additions and 85 deletions
|
|
@ -1,13 +0,0 @@
|
|||
import { z } from "zod";
|
||||
import { fromZodError } from 'zod-validation-error';
|
||||
|
||||
export default function(data) {
|
||||
// Draft content, validate `draft` front matter
|
||||
let result = z.object({
|
||||
draft: z.boolean().or(z.undefined()),
|
||||
}).safeParse(data);
|
||||
|
||||
if(result.error) {
|
||||
throw fromZodError(result.error);
|
||||
}
|
||||
}
|
||||
|
|
@ -2,7 +2,7 @@ export default {
|
|||
title: "Synth.Download",
|
||||
url: "https://synth.download/",
|
||||
language: "en",
|
||||
description: "a collection of services hosted for friends, but also the public. beep!",
|
||||
description: "a collection of services hosted for synths and beepers and beings alike, but also the public. beep!",
|
||||
author: {
|
||||
name: "Sneexy",
|
||||
email: "sneexy@synth.download",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue