mirror of
https://github.com/ckaczor/Blog.git
synced 2026-01-13 17:22:16 -05:00
Initial commit from template
This commit is contained in:
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: "Eleventy Base Blog v9",
|
||||
url: "https://example.com/",
|
||||
language: "en",
|
||||
description: "I am writing about my experiences as a naval navel-gazer.",
|
||||
author: {
|
||||
name: "Your Name Here",
|
||||
email: "youremailaddress@example.com",
|
||||
url: "https://example.com/about-me/"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user