update things
This commit is contained in:
parent
70ada41d98
commit
46b7c21b84
12 changed files with 272 additions and 10 deletions
13
_data/eleventyDataSchema.js
Normal file
13
_data/eleventyDataSchema.js
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
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);
|
||||
}
|
||||
}
|
||||
11
_data/metadata.js
Normal file
11
_data/metadata.js
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
export default {
|
||||
title: "Synth Download",
|
||||
url: "https://synth.download/",
|
||||
language: "en",
|
||||
description: "A private tilde/pubnix thing for friends. Beep!",
|
||||
author: {
|
||||
name: "Sneexy",
|
||||
email: "sneexy@synth.download",
|
||||
url: "https://synth.download/~sneexy/"
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue